Struct cloudformatious::Client
source · pub struct Client { /* private fields */ }
Expand description
A client for performing cloudformatious operations.
Implementations§
source§impl Client
impl Client
sourcepub fn new(config: &SdkConfig) -> Self
pub fn new(config: &SdkConfig) -> Self
Construct a new client for the given AWS SDK configuration.
sourcepub fn apply_stack(&self, input: ApplyStackInput) -> ApplyStack<'_> ⓘ
pub fn apply_stack(&self, input: ApplyStackInput) -> ApplyStack<'_> ⓘ
Apply a CloudFormation stack to an AWS environment.
This is an idempotent operation that will create the indicated stack if it doesn’t exist, or update it if it does. It is not an error for there to be no changes.
This is similar to the aws cloudformation deploy
command from the AWS CLI (with
--no-fail-on-empty-changeset
always on).
The returned Future
can be used to simply wait for the operation to complete. You can also
use ApplyStack::events
to get a Stream
of the stack events that occur during the
operation. See ApplyStack
for more details.
sourcepub fn delete_stack(&self, input: DeleteStackInput) -> DeleteStack<'_> ⓘ
pub fn delete_stack(&self, input: DeleteStackInput) -> DeleteStack<'_> ⓘ
Delete a CloudFormation stack from an AWS environment.
This is an idempotent operation that will delete the indicated stack if it exists, or do nothing if it does not.
DeleteStack::events
can be used to get a Stream
of StackEvent
s that occur during
deletion (the stream will be empty if the stack does not exist). See the DeleteStack
struct for more details.