pub struct CreateInstancesFromSnapshot<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInstancesFromSnapshot
.
Creates one or more new instances from a manual or automatic snapshot of an instance.
The create instances from snapshot
operation supports tag-based access control via request tags and resource tags applied to the resource identified by instance snapshot name
. For more information, see the Amazon Lightsail Developer Guide.
Implementations
impl<C, M, R> CreateInstancesFromSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateInstancesFromSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateInstancesFromSnapshotOutput, SdkError<CreateInstancesFromSnapshotError>> where
R::Policy: SmithyRetryPolicy<CreateInstancesFromSnapshotInputOperationOutputAlias, CreateInstancesFromSnapshotOutput, CreateInstancesFromSnapshotError, CreateInstancesFromSnapshotInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateInstancesFromSnapshotOutput, SdkError<CreateInstancesFromSnapshotError>> where
R::Policy: SmithyRetryPolicy<CreateInstancesFromSnapshotInputOperationOutputAlias, CreateInstancesFromSnapshotOutput, CreateInstancesFromSnapshotError, CreateInstancesFromSnapshotInputOperationRetryAlias>,
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.
Appends an item to instanceNames
.
To override the contents of this collection use set_instance_names
.
The names for your new instances.
The names for your new instances.
Adds a key-value pair to attachedDiskMapping
.
To override the contents of this collection use set_attached_disk_mapping
.
An object containing information about one or more disk mappings.
An object containing information about one or more disk mappings.
The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a
(case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones
parameter to your request.
The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a
(case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones
parameter to your request.
The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.
Constraint:
-
This parameter cannot be defined together with the
source instance name
parameter. Theinstance snapshot name
andsource instance name
parameters are mutually exclusive.
The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.
Constraint:
-
This parameter cannot be defined together with the
source instance name
parameter. Theinstance snapshot name
andsource instance name
parameters are mutually exclusive.
The bundle of specification information for your virtual private server (or instance), including the pricing plan (e.g., micro_1_0
).
The bundle of specification information for your virtual private server (or instance), including the pricing plan (e.g., micro_1_0
).
You can create a launch script that configures a server with additional user data. For example, apt-get -y update
.
Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum
, Debian and Ubuntu use apt-get
, and FreeBSD uses pkg
. For a complete list, see the Amazon Lightsail Developer Guide.
You can create a launch script that configures a server with additional user data. For example, apt-get -y update
.
Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum
, Debian and Ubuntu use apt-get
, and FreeBSD uses pkg
. For a complete list, see the Amazon Lightsail Developer Guide.
The name for your key pair.
The name for your key pair.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Appends an item to addOns
.
To override the contents of this collection use set_add_ons
.
An array of objects representing the add-ons to enable for the new instance.
An array of objects representing the add-ons to enable for the new instance.
The IP address type for the instance.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
The IP address type for the instance.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
The name of the source instance from which the source automatic snapshot was created.
Constraints:
-
This parameter cannot be defined together with the
instance snapshot name
parameter. Thesource instance name
andinstance snapshot name
parameters are mutually exclusive. -
Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
The name of the source instance from which the source automatic snapshot was created.
Constraints:
-
This parameter cannot be defined together with the
instance snapshot name
parameter. Thesource instance name
andinstance snapshot name
parameters are mutually exclusive. -
Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
The date of the automatic snapshot to use for the new instance. Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
-
Must be specified in
YYYY-MM-DD
format. -
This parameter cannot be defined together with the
use latest restorable auto snapshot
parameter. Therestore date
anduse latest restorable auto snapshot
parameters are mutually exclusive. -
Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
The date of the automatic snapshot to use for the new instance. Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
-
Must be specified in
YYYY-MM-DD
format. -
This parameter cannot be defined together with the
use latest restorable auto snapshot
parameter. Therestore date
anduse latest restorable auto snapshot
parameters are mutually exclusive. -
Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
-
This parameter cannot be defined together with the
restore date
parameter. Theuse latest restorable auto snapshot
andrestore date
parameters are mutually exclusive. -
Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
-
This parameter cannot be defined together with the
restore date
parameter. Theuse latest restorable auto snapshot
andrestore date
parameters are mutually exclusive. -
Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateInstancesFromSnapshot<C, M, R>
impl<C, M, R> Send for CreateInstancesFromSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateInstancesFromSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateInstancesFromSnapshot<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateInstancesFromSnapshot<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more