Class: Aws::Lightsail::Types::CreateDiskRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lightsail::Types::CreateDiskRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-lightsail/types.rb
Overview
When making an API call, you may pass CreateDiskRequest data as a hash:
{
disk_name: "ResourceName", # required
availability_zone: "NonEmptyString", # required
size_in_gb: 1, # required
tags: [
{
key: "TagKey",
value: "TagValue",
},
],
}
Instance Attribute Summary collapse
-
#availability_zone ⇒ String
The Availability Zone where you want to create the disk (e.g., ‘us-east-2a`).
-
#disk_name ⇒ String
The unique Lightsail disk name (e.g., ‘my-disk`).
-
#size_in_gb ⇒ Integer
The size of the disk in GB (e.g., ‘32`).
-
#tags ⇒ Array<Types::Tag>
The tag keys and optional values to add to the resource during create.
Instance Attribute Details
#availability_zone ⇒ String
The Availability Zone where you want to create the disk (e.g., ‘us-east-2a`). Choose the same Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
686 687 688 689 690 691 692 |
# File 'lib/aws-sdk-lightsail/types.rb', line 686 class CreateDiskRequest < Struct.new( :disk_name, :availability_zone, :size_in_gb, :tags) include Aws::Structure end |
#disk_name ⇒ String
The unique Lightsail disk name (e.g., ‘my-disk`).
686 687 688 689 690 691 692 |
# File 'lib/aws-sdk-lightsail/types.rb', line 686 class CreateDiskRequest < Struct.new( :disk_name, :availability_zone, :size_in_gb, :tags) include Aws::Structure end |
#size_in_gb ⇒ Integer
The size of the disk in GB (e.g., ‘32`).
686 687 688 689 690 691 692 |
# File 'lib/aws-sdk-lightsail/types.rb', line 686 class CreateDiskRequest < Struct.new( :disk_name, :availability_zone, :size_in_gb, :tags) include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the ‘tag resource` operation.
686 687 688 689 690 691 692 |
# File 'lib/aws-sdk-lightsail/types.rb', line 686 class CreateDiskRequest < Struct.new( :disk_name, :availability_zone, :size_in_gb, :tags) include Aws::Structure end |