paws.compute (version 0.5.0)

lightsail_create_disk: Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (e

Description

Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (e.g., us-east-2a).

See https://www.paws-r-sdk.com/docs/lightsail_create_disk/ for full documentation.

Usage

lightsail_create_disk(
  diskName,
  availabilityZone,
  sizeInGb,
  tags = NULL,
  addOns = NULL
)

Arguments

diskName

[required] The unique Lightsail disk name (e.g., my-disk).

availabilityZone

[required] 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.

sizeInGb

[required] The size of the disk in GB (e.g., 32).

tags

The tag keys and optional values to add to the resource during create.

Use the tag_resource action to tag a resource after it's created.

addOns

An array of objects that represent the add-ons to enable for the new disk.