#[non_exhaustive]pub struct ResourceDetailBuilder { /* private fields */ }
Expand description
A builder for ResourceDetail
.
Implementations§
source§impl ResourceDetailBuilder
impl ResourceDetailBuilder
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC generator supported resource types 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 the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC generator supported resource types In the CloudFormation User Guide
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC generator supported resource types 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 for this resource in the final generated template.
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 for this resource in the final generated template.
sourcepub fn get_logical_resource_id(&self) -> &Option<String>
pub fn get_logical_resource_id(&self) -> &Option<String>
The logical id for this resource in the final generated 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 list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
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 list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
sourcepub fn get_resource_identifier(&self) -> &Option<HashMap<String, String>>
pub fn get_resource_identifier(&self) -> &Option<HashMap<String, String>>
A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
sourcepub fn resource_status(self, input: GeneratedTemplateResourceStatus) -> Self
pub fn resource_status(self, input: GeneratedTemplateResourceStatus) -> Self
Status of the processing of a resource in a generated template.
- InProgress
-
The resource processing is still in progress.
- Complete
-
The resource processing is complete.
- Pending
-
The resource processing is pending.
- Failed
-
The resource processing has failed.
sourcepub fn set_resource_status(
self,
input: Option<GeneratedTemplateResourceStatus>
) -> Self
pub fn set_resource_status( self, input: Option<GeneratedTemplateResourceStatus> ) -> Self
Status of the processing of a resource in a generated template.
- InProgress
-
The resource processing is still in progress.
- Complete
-
The resource processing is complete.
- Pending
-
The resource processing is pending.
- Failed
-
The resource processing has failed.
sourcepub fn get_resource_status(&self) -> &Option<GeneratedTemplateResourceStatus>
pub fn get_resource_status(&self) -> &Option<GeneratedTemplateResourceStatus>
Status of the processing of a resource in a generated template.
- InProgress
-
The resource processing is still in progress.
- Complete
-
The resource processing is complete.
- Pending
-
The resource processing is pending.
- Failed
-
The resource processing has failed.
sourcepub fn resource_status_reason(self, input: impl Into<String>) -> Self
pub fn resource_status_reason(self, input: impl Into<String>) -> Self
The reason for the resource detail, providing more information if a failure happened.
sourcepub fn set_resource_status_reason(self, input: Option<String>) -> Self
pub fn set_resource_status_reason(self, input: Option<String>) -> Self
The reason for the resource detail, providing more information if a failure happened.
sourcepub fn get_resource_status_reason(&self) -> &Option<String>
pub fn get_resource_status_reason(&self) -> &Option<String>
The reason for the resource detail, providing more information if a failure happened.
sourcepub fn warnings(self, input: WarningDetail) -> Self
pub fn warnings(self, input: WarningDetail) -> Self
Appends an item to warnings
.
To override the contents of this collection use set_warnings
.
The warnings generated for this resource.
sourcepub fn set_warnings(self, input: Option<Vec<WarningDetail>>) -> Self
pub fn set_warnings(self, input: Option<Vec<WarningDetail>>) -> Self
The warnings generated for this resource.
sourcepub fn get_warnings(&self) -> &Option<Vec<WarningDetail>>
pub fn get_warnings(&self) -> &Option<Vec<WarningDetail>>
The warnings generated for this resource.
sourcepub fn build(self) -> ResourceDetail
pub fn build(self) -> ResourceDetail
Consumes the builder and constructs a ResourceDetail
.
Trait Implementations§
source§impl Clone for ResourceDetailBuilder
impl Clone for ResourceDetailBuilder
source§fn clone(&self) -> ResourceDetailBuilder
fn clone(&self) -> ResourceDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceDetailBuilder
impl Debug for ResourceDetailBuilder
source§impl Default for ResourceDetailBuilder
impl Default for ResourceDetailBuilder
source§fn default() -> ResourceDetailBuilder
fn default() -> ResourceDetailBuilder
source§impl PartialEq for ResourceDetailBuilder
impl PartialEq for ResourceDetailBuilder
source§fn eq(&self, other: &ResourceDetailBuilder) -> bool
fn eq(&self, other: &ResourceDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceDetailBuilder
Auto Trait Implementations§
impl Freeze for ResourceDetailBuilder
impl RefUnwindSafe for ResourceDetailBuilder
impl Send for ResourceDetailBuilder
impl Sync for ResourceDetailBuilder
impl Unpin for ResourceDetailBuilder
impl UnwindSafe for ResourceDetailBuilder
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