Struct aws_sdk_cloudformation::operation::update_generated_template::builders::UpdateGeneratedTemplateFluentBuilder
source · pub struct UpdateGeneratedTemplateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateGeneratedTemplate
.
Updates a generated template. This can be used to change the name, add and remove resources, refresh resources, and change the DeletionPolicy
and UpdateReplacePolicy
settings. You can check the status of the update to the generated template using the DescribeGeneratedTemplate
API action.
Implementations§
source§impl UpdateGeneratedTemplateFluentBuilder
impl UpdateGeneratedTemplateFluentBuilder
sourcepub fn as_input(&self) -> &UpdateGeneratedTemplateInputBuilder
pub fn as_input(&self) -> &UpdateGeneratedTemplateInputBuilder
Access the UpdateGeneratedTemplate as a reference.
sourcepub async fn send(
self
) -> Result<UpdateGeneratedTemplateOutput, SdkError<UpdateGeneratedTemplateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateGeneratedTemplateOutput, SdkError<UpdateGeneratedTemplateError, 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<UpdateGeneratedTemplateOutput, UpdateGeneratedTemplateError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateGeneratedTemplateOutput, UpdateGeneratedTemplateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn generated_template_name(self, input: impl Into<String>) -> Self
pub fn generated_template_name(self, input: impl Into<String>) -> Self
The name or Amazon Resource Name (ARN) of a generated template.
sourcepub fn set_generated_template_name(self, input: Option<String>) -> Self
pub fn set_generated_template_name(self, input: Option<String>) -> Self
The name or Amazon Resource Name (ARN) of a generated template.
sourcepub fn get_generated_template_name(&self) -> &Option<String>
pub fn get_generated_template_name(&self) -> &Option<String>
The name or Amazon Resource Name (ARN) of a generated template.
sourcepub fn new_generated_template_name(self, input: impl Into<String>) -> Self
pub fn new_generated_template_name(self, input: impl Into<String>) -> Self
An optional new name to assign to the generated template.
sourcepub fn set_new_generated_template_name(self, input: Option<String>) -> Self
pub fn set_new_generated_template_name(self, input: Option<String>) -> Self
An optional new name to assign to the generated template.
sourcepub fn get_new_generated_template_name(&self) -> &Option<String>
pub fn get_new_generated_template_name(&self) -> &Option<String>
An optional new name to assign to the generated template.
sourcepub fn add_resources(self, input: ResourceDefinition) -> Self
pub fn add_resources(self, input: ResourceDefinition) -> Self
Appends an item to AddResources
.
To override the contents of this collection use set_add_resources
.
An optional list of resources to be added to the generated template.
sourcepub fn set_add_resources(self, input: Option<Vec<ResourceDefinition>>) -> Self
pub fn set_add_resources(self, input: Option<Vec<ResourceDefinition>>) -> Self
An optional list of resources to be added to the generated template.
sourcepub fn get_add_resources(&self) -> &Option<Vec<ResourceDefinition>>
pub fn get_add_resources(&self) -> &Option<Vec<ResourceDefinition>>
An optional list of resources to be added to the generated template.
sourcepub fn remove_resources(self, input: impl Into<String>) -> Self
pub fn remove_resources(self, input: impl Into<String>) -> Self
Appends an item to RemoveResources
.
To override the contents of this collection use set_remove_resources
.
A list of logical ids for resources to remove from the generated template.
sourcepub fn set_remove_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_remove_resources(self, input: Option<Vec<String>>) -> Self
A list of logical ids for resources to remove from the generated template.
sourcepub fn get_remove_resources(&self) -> &Option<Vec<String>>
pub fn get_remove_resources(&self) -> &Option<Vec<String>>
A list of logical ids for resources to remove from the generated template.
sourcepub fn refresh_all_resources(self, input: bool) -> Self
pub fn refresh_all_resources(self, input: bool) -> Self
If true
, update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.
sourcepub fn set_refresh_all_resources(self, input: Option<bool>) -> Self
pub fn set_refresh_all_resources(self, input: Option<bool>) -> Self
If true
, update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.
sourcepub fn get_refresh_all_resources(&self) -> &Option<bool>
pub fn get_refresh_all_resources(&self) -> &Option<bool>
If true
, update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.
sourcepub fn template_configuration(self, input: TemplateConfiguration) -> Self
pub fn template_configuration(self, input: TemplateConfiguration) -> Self
The configuration details of the generated template, including the DeletionPolicy
and UpdateReplacePolicy
.
sourcepub fn set_template_configuration(
self,
input: Option<TemplateConfiguration>
) -> Self
pub fn set_template_configuration( self, input: Option<TemplateConfiguration> ) -> Self
The configuration details of the generated template, including the DeletionPolicy
and UpdateReplacePolicy
.
sourcepub fn get_template_configuration(&self) -> &Option<TemplateConfiguration>
pub fn get_template_configuration(&self) -> &Option<TemplateConfiguration>
The configuration details of the generated template, including the DeletionPolicy
and UpdateReplacePolicy
.
Trait Implementations§
source§impl Clone for UpdateGeneratedTemplateFluentBuilder
impl Clone for UpdateGeneratedTemplateFluentBuilder
source§fn clone(&self) -> UpdateGeneratedTemplateFluentBuilder
fn clone(&self) -> UpdateGeneratedTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more