pub struct GetTemplateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetTemplate
.
Returns the template body for a specified stack. You can get the template for running or deleted stacks.
For deleted stacks, GetTemplate
returns the template for up to 90 days after the stack has been deleted.
If the template doesn't exist, a ValidationError
is returned.
Implementations§
source§impl GetTemplateFluentBuilder
impl GetTemplateFluentBuilder
sourcepub fn as_input(&self) -> &GetTemplateInputBuilder
pub fn as_input(&self) -> &GetTemplateInputBuilder
Access the GetTemplate as a reference.
sourcepub async fn send(
self
) -> Result<GetTemplateOutput, SdkError<GetTemplateError, HttpResponse>>
pub async fn send( self ) -> Result<GetTemplateOutput, SdkError<GetTemplateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetTemplateOutput, GetTemplateError, Self>
pub fn customize( self ) -> CustomizableOperation<GetTemplateOutput, GetTemplateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:
-
Running stacks: You can specify either the stack's name or its unique stack ID.
-
Deleted stacks: You must specify the unique stack ID.
Default: There is no default value.
sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:
-
Running stacks: You can specify either the stack's name or its unique stack ID.
-
Deleted stacks: You must specify the unique stack ID.
Default: There is no default value.
sourcepub fn get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &Option<String>
The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:
-
Running stacks: You can specify either the stack's name or its unique stack ID.
-
Deleted stacks: You must specify the unique stack ID.
Default: There is no default value.
sourcepub fn change_set_name(self, input: impl Into<String>) -> Self
pub fn change_set_name(self, input: impl Into<String>) -> Self
The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the StackName
.
sourcepub fn set_change_set_name(self, input: Option<String>) -> Self
pub fn set_change_set_name(self, input: Option<String>) -> Self
The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the StackName
.
sourcepub fn get_change_set_name(&self) -> &Option<String>
pub fn get_change_set_name(&self) -> &Option<String>
The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the StackName
.
sourcepub fn template_stage(self, input: TemplateStage) -> Self
pub fn template_stage(self, input: TemplateStage) -> Self
For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify Original
. To get the template after CloudFormation has processed all transforms, specify Processed
.
If the template doesn't include transforms, Original
and Processed
return the same template. By default, CloudFormation specifies Processed
.
sourcepub fn set_template_stage(self, input: Option<TemplateStage>) -> Self
pub fn set_template_stage(self, input: Option<TemplateStage>) -> Self
For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify Original
. To get the template after CloudFormation has processed all transforms, specify Processed
.
If the template doesn't include transforms, Original
and Processed
return the same template. By default, CloudFormation specifies Processed
.
sourcepub fn get_template_stage(&self) -> &Option<TemplateStage>
pub fn get_template_stage(&self) -> &Option<TemplateStage>
For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify Original
. To get the template after CloudFormation has processed all transforms, specify Processed
.
If the template doesn't include transforms, Original
and Processed
return the same template. By default, CloudFormation specifies Processed
.
Trait Implementations§
source§impl Clone for GetTemplateFluentBuilder
impl Clone for GetTemplateFluentBuilder
source§fn clone(&self) -> GetTemplateFluentBuilder
fn clone(&self) -> GetTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetTemplateFluentBuilder
impl !RefUnwindSafe for GetTemplateFluentBuilder
impl Send for GetTemplateFluentBuilder
impl Sync for GetTemplateFluentBuilder
impl Unpin for GetTemplateFluentBuilder
impl !UnwindSafe for GetTemplateFluentBuilder
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