class Aws::Lightsail::Types::CopySnapshotRequest

@note When making an API call, you may pass CopySnapshotRequest

data as a hash:

    {
      source_snapshot_name: "ResourceName",
      source_resource_name: "string",
      restore_date: "string",
      use_latest_restorable_auto_snapshot: false,
      target_snapshot_name: "ResourceName", # required
      source_region: "us-east-1", # required, accepts us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-west-3, eu-central-1, ca-central-1, ap-south-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-northeast-2, eu-north-1
    }

@!attribute [rw] source_snapshot_name

The name of the source manual snapshot to copy.

Constraint:

* Define this parameter only when copying a manual snapshot as
  another manual snapshot.

^
@return [String]

@!attribute [rw] source_resource_name

The name of the source instance or disk from which the source
automatic snapshot was created.

Constraint:

* Define this parameter only when copying an automatic snapshot as a
  manual snapshot. For more information, see the [Amazon Lightsail
  Developer Guide][1].

^

[1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots
@return [String]

@!attribute [rw] restore_date

The date of the source automatic snapshot to copy. Use the `get auto
snapshots` operation to identify the dates of the available
automatic snapshots.

Constraints:

* Must be specified in `YYYY-MM-DD` format.

* This parameter cannot be defined together with the `use latest
  restorable auto snapshot` parameter. The `restore date` and `use
  latest restorable auto snapshot` parameters are mutually
  exclusive.

* Define this parameter only when copying an automatic snapshot as a
  manual snapshot. For more information, see the [Amazon Lightsail
  Developer Guide][1].

[1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots
@return [String]

@!attribute [rw] use_latest_restorable_auto_snapshot

A Boolean value to indicate whether to use the latest available
automatic snapshot of the specified source instance or disk.

Constraints:

* This parameter cannot be defined together with the `restore date`
  parameter. The `use latest restorable auto snapshot` and `restore
  date` parameters are mutually exclusive.

* Define this parameter only when copying an automatic snapshot as a
  manual snapshot. For more information, see the [Amazon Lightsail
  Developer Guide][1].

[1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots
@return [Boolean]

@!attribute [rw] target_snapshot_name

The name of the new manual snapshot to be created as a copy.
@return [String]

@!attribute [rw] source_region

The AWS Region where the source manual or automatic snapshot is
located.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CopySnapshotRequest AWS API Documentation

Constants

SENSITIVE