#[non_exhaustive]pub struct ResourceToImportBuilder { /* private fields */ }
Expand description
A builder for ResourceToImport
.
Implementations§
source§impl ResourceToImportBuilder
impl ResourceToImportBuilder
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
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 set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
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 get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &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.
sourcepub fn logical_resource_id(self, input: impl Into<String>) -> Self
pub fn logical_resource_id(self, input: impl Into<String>) -> Self
The logical ID of the target resource as specified in the template.
This field is required.sourcepub fn set_logical_resource_id(self, input: Option<String>) -> Self
pub fn set_logical_resource_id(self, input: Option<String>) -> Self
The logical ID of the target resource as specified in the template.
sourcepub fn get_logical_resource_id(&self) -> &Option<String>
pub fn get_logical_resource_id(&self) -> &Option<String>
The logical ID of the target resource as specified in the template.
sourcepub fn resource_identifier(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn resource_identifier( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to resource_identifier
.
To override the contents of this collection use set_resource_identifier
.
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
).
sourcepub fn set_resource_identifier(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_resource_identifier( self, input: Option<HashMap<String, String>> ) -> Self
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
).
sourcepub fn get_resource_identifier(&self) -> &Option<HashMap<String, String>>
pub fn get_resource_identifier(&self) -> &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
).
sourcepub fn build(self) -> ResourceToImport
pub fn build(self) -> ResourceToImport
Consumes the builder and constructs a ResourceToImport
.
Trait Implementations§
source§impl Clone for ResourceToImportBuilder
impl Clone for ResourceToImportBuilder
source§fn clone(&self) -> ResourceToImportBuilder
fn clone(&self) -> ResourceToImportBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceToImportBuilder
impl Debug for ResourceToImportBuilder
source§impl Default for ResourceToImportBuilder
impl Default for ResourceToImportBuilder
source§fn default() -> ResourceToImportBuilder
fn default() -> ResourceToImportBuilder
source§impl PartialEq for ResourceToImportBuilder
impl PartialEq for ResourceToImportBuilder
source§fn eq(&self, other: &ResourceToImportBuilder) -> bool
fn eq(&self, other: &ResourceToImportBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceToImportBuilder
Auto Trait Implementations§
impl Freeze for ResourceToImportBuilder
impl RefUnwindSafe for ResourceToImportBuilder
impl Send for ResourceToImportBuilder
impl Sync for ResourceToImportBuilder
impl Unpin for ResourceToImportBuilder
impl UnwindSafe for ResourceToImportBuilder
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