Skip to content

CloudFormation  >  Structures  >  ResourceToImport

ResourceToImport

Structure Class

ResourceToImport dataclass

Bases: _SerdeShape

Describes the target resource of an import operation.

Attributes

logical_resource_id class-attribute instance-attribute
logical_resource_id: str | None = ...

The logical ID of the target resource as specified in the template.

resource_identifier class-attribute instance-attribute
resource_identifier: dict[str, str] | None = ...

A key-value pair that identifies the target resource. The key is an identifier property (for example, BucketName for AWS::S3::Bucket resources) and the value is the actual property value (for example, MyS3Bucket).

resource_type class-attribute instance-attribute
resource_type: str | None = ...

The type of resource to import into your stack, such as AWS::S3::Bucket. For a list of supported resource types, see Resource type support for imports and drift detection in the CloudFormation User Guide.