#[non_exhaustive]pub struct StackInstanceBuilder { /* private fields */ }
Expand description
A builder for StackInstance
.
Implementations§
source§impl StackInstanceBuilder
impl StackInstanceBuilder
sourcepub fn stack_set_id(self, input: impl Into<String>) -> Self
pub fn stack_set_id(self, input: impl Into<String>) -> Self
The name or unique ID of the stack set that the stack instance is associated with.
sourcepub fn set_stack_set_id(self, input: Option<String>) -> Self
pub fn set_stack_set_id(self, input: Option<String>) -> Self
The name or unique ID of the stack set that the stack instance is associated with.
sourcepub fn get_stack_set_id(&self) -> &Option<String>
pub fn get_stack_set_id(&self) -> &Option<String>
The name or unique ID of the stack set that the stack instance is associated with.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The name of the Amazon Web Services Region that the stack instance is associated with.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The name of the Amazon Web Services Region that the stack instance is associated with.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The name of the Amazon Web Services Region that the stack instance is associated with.
sourcepub fn account(self, input: impl Into<String>) -> Self
pub fn account(self, input: impl Into<String>) -> Self
[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.
sourcepub fn set_account(self, input: Option<String>) -> Self
pub fn set_account(self, input: Option<String>) -> Self
[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.
sourcepub fn get_account(&self) -> &Option<String>
pub fn get_account(&self) -> &Option<String>
[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.
sourcepub fn set_stack_id(self, input: Option<String>) -> Self
pub fn set_stack_id(self, input: Option<String>) -> Self
The ID of the stack instance.
sourcepub fn get_stack_id(&self) -> &Option<String>
pub fn get_stack_id(&self) -> &Option<String>
The ID of the stack instance.
sourcepub fn parameter_overrides(self, input: Parameter) -> Self
pub fn parameter_overrides(self, input: Parameter) -> Self
Appends an item to parameter_overrides
.
To override the contents of this collection use set_parameter_overrides
.
A list of parameters from the stack set template whose values have been overridden in this stack instance.
sourcepub fn set_parameter_overrides(self, input: Option<Vec<Parameter>>) -> Self
pub fn set_parameter_overrides(self, input: Option<Vec<Parameter>>) -> Self
A list of parameters from the stack set template whose values have been overridden in this stack instance.
sourcepub fn get_parameter_overrides(&self) -> &Option<Vec<Parameter>>
pub fn get_parameter_overrides(&self) -> &Option<Vec<Parameter>>
A list of parameters from the stack set template whose values have been overridden in this stack instance.
sourcepub fn status(self, input: StackInstanceStatus) -> Self
pub fn status(self, input: StackInstanceStatus) -> Self
The status of the stack instance, in terms of its synchronization with its associated stack set.
-
INOPERABLE
: ADeleteStackInstances
operation has failed and left the stack in an unstable state. Stacks in this state are excluded from furtherUpdateStackSet
operations. You might need to perform aDeleteStackInstances
operation, withRetainStacks
set totrue
, to delete the stack instance, and then delete the stack manually.INOPERABLE
can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, look at theDetailedStatus
member in theStackInstanceSummary
member that is a peer to thisStatus
member. -
OUTDATED
: The stack isn't currently up to date with the stack set because:-
The associated stack failed during a
CreateStackSet
orUpdateStackSet
operation. -
The stack was part of a
CreateStackSet
orUpdateStackSet
operation that failed or was stopped before the stack was created or updated.
-
-
CURRENT
: The stack is currently up to date with the stack set.
sourcepub fn set_status(self, input: Option<StackInstanceStatus>) -> Self
pub fn set_status(self, input: Option<StackInstanceStatus>) -> Self
The status of the stack instance, in terms of its synchronization with its associated stack set.
-
INOPERABLE
: ADeleteStackInstances
operation has failed and left the stack in an unstable state. Stacks in this state are excluded from furtherUpdateStackSet
operations. You might need to perform aDeleteStackInstances
operation, withRetainStacks
set totrue
, to delete the stack instance, and then delete the stack manually.INOPERABLE
can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, look at theDetailedStatus
member in theStackInstanceSummary
member that is a peer to thisStatus
member. -
OUTDATED
: The stack isn't currently up to date with the stack set because:-
The associated stack failed during a
CreateStackSet
orUpdateStackSet
operation. -
The stack was part of a
CreateStackSet
orUpdateStackSet
operation that failed or was stopped before the stack was created or updated.
-
-
CURRENT
: The stack is currently up to date with the stack set.
sourcepub fn get_status(&self) -> &Option<StackInstanceStatus>
pub fn get_status(&self) -> &Option<StackInstanceStatus>
The status of the stack instance, in terms of its synchronization with its associated stack set.
-
INOPERABLE
: ADeleteStackInstances
operation has failed and left the stack in an unstable state. Stacks in this state are excluded from furtherUpdateStackSet
operations. You might need to perform aDeleteStackInstances
operation, withRetainStacks
set totrue
, to delete the stack instance, and then delete the stack manually.INOPERABLE
can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, look at theDetailedStatus
member in theStackInstanceSummary
member that is a peer to thisStatus
member. -
OUTDATED
: The stack isn't currently up to date with the stack set because:-
The associated stack failed during a
CreateStackSet
orUpdateStackSet
operation. -
The stack was part of a
CreateStackSet
orUpdateStackSet
operation that failed or was stopped before the stack was created or updated.
-
-
CURRENT
: The stack is currently up to date with the stack set.
sourcepub fn stack_instance_status(
self,
input: StackInstanceComprehensiveStatus
) -> Self
pub fn stack_instance_status( self, input: StackInstanceComprehensiveStatus ) -> Self
The detailed status of the stack instance.
sourcepub fn set_stack_instance_status(
self,
input: Option<StackInstanceComprehensiveStatus>
) -> Self
pub fn set_stack_instance_status( self, input: Option<StackInstanceComprehensiveStatus> ) -> Self
The detailed status of the stack instance.
sourcepub fn get_stack_instance_status(
&self
) -> &Option<StackInstanceComprehensiveStatus>
pub fn get_stack_instance_status( &self ) -> &Option<StackInstanceComprehensiveStatus>
The detailed status of the stack instance.
sourcepub fn status_reason(self, input: impl Into<String>) -> Self
pub fn status_reason(self, input: impl Into<String>) -> Self
The explanation for the specific status code that's assigned to this stack instance.
sourcepub fn set_status_reason(self, input: Option<String>) -> Self
pub fn set_status_reason(self, input: Option<String>) -> Self
The explanation for the specific status code that's assigned to this stack instance.
sourcepub fn get_status_reason(&self) -> &Option<String>
pub fn get_status_reason(&self) -> &Option<String>
The explanation for the specific status code that's assigned to this stack instance.
sourcepub fn organizational_unit_id(self, input: impl Into<String>) -> Self
pub fn organizational_unit_id(self, input: impl Into<String>) -> Self
[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
sourcepub fn set_organizational_unit_id(self, input: Option<String>) -> Self
pub fn set_organizational_unit_id(self, input: Option<String>) -> Self
[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
sourcepub fn get_organizational_unit_id(&self) -> &Option<String>
pub fn get_organizational_unit_id(&self) -> &Option<String>
[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
sourcepub fn drift_status(self, input: StackDriftStatus) -> Self
pub fn drift_status(self, input: StackDriftStatus) -> Self
Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.
-
DRIFTED
: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted. -
NOT_CHECKED
: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration. -
IN_SYNC
: The stack instance's actual configuration matches its expected stack set configuration. -
UNKNOWN
: This value is reserved for future use.
sourcepub fn set_drift_status(self, input: Option<StackDriftStatus>) -> Self
pub fn set_drift_status(self, input: Option<StackDriftStatus>) -> Self
Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.
-
DRIFTED
: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted. -
NOT_CHECKED
: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration. -
IN_SYNC
: The stack instance's actual configuration matches its expected stack set configuration. -
UNKNOWN
: This value is reserved for future use.
sourcepub fn get_drift_status(&self) -> &Option<StackDriftStatus>
pub fn get_drift_status(&self) -> &Option<StackDriftStatus>
Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.
-
DRIFTED
: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted. -
NOT_CHECKED
: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration. -
IN_SYNC
: The stack instance's actual configuration matches its expected stack set configuration. -
UNKNOWN
: This value is reserved for future use.
sourcepub fn last_drift_check_timestamp(self, input: DateTime) -> Self
pub fn last_drift_check_timestamp(self, input: DateTime) -> Self
Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL
for any stack instance on which drift detection hasn't yet been performed.
sourcepub fn set_last_drift_check_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_drift_check_timestamp(self, input: Option<DateTime>) -> Self
Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL
for any stack instance on which drift detection hasn't yet been performed.
sourcepub fn get_last_drift_check_timestamp(&self) -> &Option<DateTime>
pub fn get_last_drift_check_timestamp(&self) -> &Option<DateTime>
Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL
for any stack instance on which drift detection hasn't yet been performed.
sourcepub fn last_operation_id(self, input: impl Into<String>) -> Self
pub fn last_operation_id(self, input: impl Into<String>) -> Self
The last unique ID of a StackSet operation performed on a stack instance.
sourcepub fn set_last_operation_id(self, input: Option<String>) -> Self
pub fn set_last_operation_id(self, input: Option<String>) -> Self
The last unique ID of a StackSet operation performed on a stack instance.
sourcepub fn get_last_operation_id(&self) -> &Option<String>
pub fn get_last_operation_id(&self) -> &Option<String>
The last unique ID of a StackSet operation performed on a stack instance.
sourcepub fn build(self) -> StackInstance
pub fn build(self) -> StackInstance
Consumes the builder and constructs a StackInstance
.
Trait Implementations§
source§impl Clone for StackInstanceBuilder
impl Clone for StackInstanceBuilder
source§fn clone(&self) -> StackInstanceBuilder
fn clone(&self) -> StackInstanceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StackInstanceBuilder
impl Debug for StackInstanceBuilder
source§impl Default for StackInstanceBuilder
impl Default for StackInstanceBuilder
source§fn default() -> StackInstanceBuilder
fn default() -> StackInstanceBuilder
source§impl PartialEq for StackInstanceBuilder
impl PartialEq for StackInstanceBuilder
source§fn eq(&self, other: &StackInstanceBuilder) -> bool
fn eq(&self, other: &StackInstanceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.