Struct aws_sdk_lightsail::operation::create_cloud_formation_stack::builders::CreateCloudFormationStackFluentBuilder
source · pub struct CreateCloudFormationStackFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCloudFormationStack
.
Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot. This operation results in a CloudFormation stack record that can be used to track the AWS CloudFormation stack created. Use the get cloud formation stack records
operation to get a list of the CloudFormation stacks created.
Wait until after your new Amazon EC2 instance is created before running the create cloud formation stack
operation again with the same export snapshot record.
Implementations§
source§impl CreateCloudFormationStackFluentBuilder
impl CreateCloudFormationStackFluentBuilder
sourcepub fn as_input(&self) -> &CreateCloudFormationStackInputBuilder
pub fn as_input(&self) -> &CreateCloudFormationStackInputBuilder
Access the CreateCloudFormationStack as a reference.
sourcepub async fn send(
self
) -> Result<CreateCloudFormationStackOutput, SdkError<CreateCloudFormationStackError, HttpResponse>>
pub async fn send( self ) -> Result<CreateCloudFormationStackOutput, SdkError<CreateCloudFormationStackError, 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<CreateCloudFormationStackOutput, CreateCloudFormationStackError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateCloudFormationStackOutput, CreateCloudFormationStackError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instances(self, input: InstanceEntry) -> Self
pub fn instances(self, input: InstanceEntry) -> Self
Appends an item to instances
.
To override the contents of this collection use set_instances
.
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
sourcepub fn set_instances(self, input: Option<Vec<InstanceEntry>>) -> Self
pub fn set_instances(self, input: Option<Vec<InstanceEntry>>) -> Self
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
sourcepub fn get_instances(&self) -> &Option<Vec<InstanceEntry>>
pub fn get_instances(&self) -> &Option<Vec<InstanceEntry>>
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
Trait Implementations§
source§impl Clone for CreateCloudFormationStackFluentBuilder
impl Clone for CreateCloudFormationStackFluentBuilder
source§fn clone(&self) -> CreateCloudFormationStackFluentBuilder
fn clone(&self) -> CreateCloudFormationStackFluentBuilder
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 CreateCloudFormationStackFluentBuilder
impl !RefUnwindSafe for CreateCloudFormationStackFluentBuilder
impl Send for CreateCloudFormationStackFluentBuilder
impl Sync for CreateCloudFormationStackFluentBuilder
impl Unpin for CreateCloudFormationStackFluentBuilder
impl !UnwindSafe for CreateCloudFormationStackFluentBuilder
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