#[non_exhaustive]pub struct StackResourceBuilder { /* private fields */ }
Expand description
A builder for StackResource
.
Implementations§
source§impl StackResourceBuilder
impl StackResourceBuilder
sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name associated with the stack.
sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name associated with the stack.
sourcepub fn get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &Option<String>
The name associated with the stack.
sourcepub fn set_stack_id(self, input: Option<String>) -> Self
pub fn set_stack_id(self, input: Option<String>) -> Self
Unique identifier of the stack.
sourcepub fn get_stack_id(&self) -> &Option<String>
pub fn get_stack_id(&self) -> &Option<String>
Unique identifier of the stack.
sourcepub fn logical_resource_id(self, input: impl Into<String>) -> Self
pub fn logical_resource_id(self, input: impl Into<String>) -> Self
The logical name of the resource 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 name of the resource specified in the template.
sourcepub fn get_logical_resource_id(&self) -> &Option<String>
pub fn get_logical_resource_id(&self) -> &Option<String>
The logical name of the resource specified in the template.
sourcepub fn physical_resource_id(self, input: impl Into<String>) -> Self
pub fn physical_resource_id(self, input: impl Into<String>) -> Self
The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
sourcepub fn set_physical_resource_id(self, input: Option<String>) -> Self
pub fn set_physical_resource_id(self, input: Option<String>) -> Self
The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
sourcepub fn get_physical_resource_id(&self) -> &Option<String>
pub fn get_physical_resource_id(&self) -> &Option<String>
The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
Type of resource. For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User Guide.
This field is required.sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
Type of resource. For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User Guide.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
Type of resource. For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User Guide.
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
Time the status was updated.
This field is required.sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
Time the status was updated.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
Time the status was updated.
sourcepub fn resource_status(self, input: ResourceStatus) -> Self
pub fn resource_status(self, input: ResourceStatus) -> Self
Current status of the resource.
This field is required.sourcepub fn set_resource_status(self, input: Option<ResourceStatus>) -> Self
pub fn set_resource_status(self, input: Option<ResourceStatus>) -> Self
Current status of the resource.
sourcepub fn get_resource_status(&self) -> &Option<ResourceStatus>
pub fn get_resource_status(&self) -> &Option<ResourceStatus>
Current status of the resource.
sourcepub fn resource_status_reason(self, input: impl Into<String>) -> Self
pub fn resource_status_reason(self, input: impl Into<String>) -> Self
Success/failure message associated with the resource.
sourcepub fn set_resource_status_reason(self, input: Option<String>) -> Self
pub fn set_resource_status_reason(self, input: Option<String>) -> Self
Success/failure message associated with the resource.
sourcepub fn get_resource_status_reason(&self) -> &Option<String>
pub fn get_resource_status_reason(&self) -> &Option<String>
Success/failure message associated with the resource.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
User defined description associated with the resource.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
User defined description associated with the resource.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
User defined description associated with the resource.
sourcepub fn drift_information(self, input: StackResourceDriftInformation) -> Self
pub fn drift_information(self, input: StackResourceDriftInformation) -> Self
Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
sourcepub fn set_drift_information(
self,
input: Option<StackResourceDriftInformation>
) -> Self
pub fn set_drift_information( self, input: Option<StackResourceDriftInformation> ) -> Self
Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
sourcepub fn get_drift_information(&self) -> &Option<StackResourceDriftInformation>
pub fn get_drift_information(&self) -> &Option<StackResourceDriftInformation>
Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
sourcepub fn module_info(self, input: ModuleInfo) -> Self
pub fn module_info(self, input: ModuleInfo) -> Self
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
sourcepub fn set_module_info(self, input: Option<ModuleInfo>) -> Self
pub fn set_module_info(self, input: Option<ModuleInfo>) -> Self
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
sourcepub fn get_module_info(&self) -> &Option<ModuleInfo>
pub fn get_module_info(&self) -> &Option<ModuleInfo>
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
sourcepub fn build(self) -> StackResource
pub fn build(self) -> StackResource
Consumes the builder and constructs a StackResource
.
Trait Implementations§
source§impl Clone for StackResourceBuilder
impl Clone for StackResourceBuilder
source§fn clone(&self) -> StackResourceBuilder
fn clone(&self) -> StackResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StackResourceBuilder
impl Debug for StackResourceBuilder
source§impl Default for StackResourceBuilder
impl Default for StackResourceBuilder
source§fn default() -> StackResourceBuilder
fn default() -> StackResourceBuilder
source§impl PartialEq for StackResourceBuilder
impl PartialEq for StackResourceBuilder
source§fn eq(&self, other: &StackResourceBuilder) -> bool
fn eq(&self, other: &StackResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StackResourceBuilder
Auto Trait Implementations§
impl Freeze for StackResourceBuilder
impl RefUnwindSafe for StackResourceBuilder
impl Send for StackResourceBuilder
impl Sync for StackResourceBuilder
impl Unpin for StackResourceBuilder
impl UnwindSafe for StackResourceBuilder
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