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 StackEvents that occur during
deletion (the stream will be empty if the stack does not exist). See the DeleteStack
struct for more details.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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