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 ==
.impl StructuralPartialEq for ResourceToImport
Auto Trait Implementations§
impl Freeze for ResourceToImport
impl RefUnwindSafe for ResourceToImport
impl Send for ResourceToImport
impl Sync for ResourceToImport
impl Unpin for ResourceToImport
impl UnwindSafe for ResourceToImport
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more