Struct aws_sdk_lightsail::client::fluent_builders::CreateDisk
source · [−]pub struct CreateDisk<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDisk
.
Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (e.g., us-east-2a
).
The create disk
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.
Implementations
impl<C, M, R> CreateDisk<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDisk<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<CreateDiskOutput, SdkError<CreateDiskError>> where
R::Policy: SmithyRetryPolicy<CreateDiskInputOperationOutputAlias, CreateDiskOutput, CreateDiskError, CreateDiskInputOperationRetryAlias>,
pub async fn send(self) -> Result<CreateDiskOutput, SdkError<CreateDiskError>> where
R::Policy: SmithyRetryPolicy<CreateDiskInputOperationOutputAlias, CreateDiskOutput, CreateDiskError, CreateDiskInputOperationRetryAlias>,
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.
The unique Lightsail disk name (e.g., my-disk
).
The unique Lightsail disk name (e.g., my-disk
).
The Availability Zone where you want to create the disk (e.g., us-east-2a
). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently available.
The Availability Zone where you want to create the disk (e.g., us-east-2a
). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently available.
The size of the disk in GB (e.g., 32
).
The size of the disk in GB (e.g., 32
).
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 that represent the add-ons to enable for the new disk.
An array of objects that represent the add-ons to enable for the new disk.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateDisk<C, M, R>
impl<C, M, R> Unpin for CreateDisk<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateDisk<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