Struct aws_sdk_cloudformation::types::ResourceToImport
source · #[non_exhaustive]pub struct ResourceToImport {
pub resource_type: Option<String>,
pub logical_resource_id: Option<String>,
pub resource_identifier: Option<HashMap<String, String>>,
}
Expand description
Describes the target resource of an import operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_type: Option<String>
The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of supported resource types, see Resources that support import operations in the CloudFormation User Guide.
logical_resource_id: Option<String>
The logical ID of the target resource as specified in the template.
resource_identifier: Option<HashMap<String, String>>
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
).
Implementations§
source§impl ResourceToImport
impl ResourceToImport
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of supported resource types, see Resources that support import operations in the CloudFormation User Guide.
sourcepub fn logical_resource_id(&self) -> Option<&str>
pub fn logical_resource_id(&self) -> Option<&str>
The logical ID of the target resource as specified in the template.
source§impl ResourceToImport
impl ResourceToImport
sourcepub fn builder() -> ResourceToImportBuilder
pub fn builder() -> ResourceToImportBuilder
Creates a new builder-style object to manufacture ResourceToImport
.
Trait Implementations§
source§impl Clone for ResourceToImport
impl Clone for ResourceToImport
source§fn clone(&self) -> ResourceToImport
fn clone(&self) -> ResourceToImport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceToImport
impl Debug for ResourceToImport
source§impl PartialEq for ResourceToImport
impl PartialEq for ResourceToImport
source§fn eq(&self, other: &ResourceToImport) -> bool
fn eq(&self, other: &ResourceToImport) -> bool
self
and other
values to be equal, and is used
by ==
.