You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lightsail::Types::CreateDiskSnapshotRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateDiskSnapshotRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  disk_name: "ResourceName",
  disk_snapshot_name: "ResourceName", # required
  instance_name: "ResourceName",
  tags: [
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#disk_nameString

The unique name of the source disk (e.g., Disk-Virginia-1).

This parameter cannot be defined together with the instance name parameter. The disk name and instance name parameters are mutually exclusive.

Returns:

  • (String)

    The unique name of the source disk (e.g., Disk-Virginia-1).

#disk_snapshot_nameString

The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.

Returns:

  • (String)

    The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.

#instance_nameString

The unique name of the source instance (e.g., Amazon_Linux-512MB-Virginia-1). When this is defined, a snapshot of the instance\'s system volume is created.

This parameter cannot be defined together with the disk name parameter. The instance name and disk name parameters are mutually exclusive.

Returns:

  • (String)

    The unique name of the source instance (e.g., Amazon_Linux-512MB-Virginia-1).

#tagsArray<Types::Tag>

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.

Returns:

  • (Array<Types::Tag>)

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