NAME

Paws::Lightsail::CopySnapshot - Arguments for method CopySnapshot on Paws::Lightsail

DESCRIPTION

This class represents the parameters used for calling the method CopySnapshot on the Amazon Lightsail service. Use the attributes of this class as arguments to method CopySnapshot.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CopySnapshot.

SYNOPSIS

my $lightsail = Paws->service('Lightsail');
my $CopySnapshotResult = $lightsail->CopySnapshot(
  SourceRegion                    => 'us-east-1',
  TargetSnapshotName              => 'MyResourceName',
  RestoreDate                     => 'Mystring',          # OPTIONAL
  SourceResourceName              => 'Mystring',          # OPTIONAL
  SourceSnapshotName              => 'MyResourceName',    # OPTIONAL
  UseLatestRestorableAutoSnapshot => 1,                   # OPTIONAL
);

# Results:
my $Operations = $CopySnapshotResult->Operations;

# Returns a L<Paws::Lightsail::CopySnapshotResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/lightsail/CopySnapshot

ATTRIBUTES

RestoreDate => Str

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 Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots).

REQUIRED SourceRegion => Str

The AWS Region where the source manual or automatic snapshot is located.

Valid values are: "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"

SourceResourceName => Str

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 Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots).

SourceSnapshotName => Str

The name of the source manual snapshot to copy.

Constraint:

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

REQUIRED TargetSnapshotName => Str

The name of the new manual snapshot to be created as a copy.

UseLatestRestorableAutoSnapshot => Bool

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 Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots).

SEE ALSO

This class forms part of Paws, documenting arguments for method CopySnapshot in Paws::Lightsail

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues