Struct aws_sdk_lightsail::input::CreateDiskInput [−][src]
#[non_exhaustive]pub struct CreateDiskInput {
pub disk_name: Option<String>,
pub availability_zone: Option<String>,
pub size_in_gb: Option<i32>,
pub tags: Option<Vec<Tag>>,
pub add_ons: Option<Vec<AddOnRequest>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.disk_name: Option<String>
The unique Lightsail disk name (e.g., my-disk
).
availability_zone: Option<String>
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.
size_in_gb: Option<i32>
The size of the disk in GB (e.g., 32
).
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.
add_ons: Option<Vec<AddOnRequest>>
An array of objects that represent the add-ons to enable for the new disk.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDisk, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDisk, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateDisk
>
Creates a new builder-style object to manufacture CreateDiskInput
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 tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateDiskInput
impl Send for CreateDiskInput
impl Sync for CreateDiskInput
impl Unpin for CreateDiskInput
impl UnwindSafe for CreateDiskInput
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