The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::RDS::ModifyDBSnapshotAttribute - Arguments for method ModifyDBSnapshotAttribute on Paws::RDS

DESCRIPTION

This class represents the parameters used for calling the method ModifyDBSnapshotAttribute on the Amazon Relational Database Service service. Use the attributes of this class as arguments to method ModifyDBSnapshotAttribute.

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

SYNOPSIS

    my $rds = Paws->service('RDS');
    # To change DB snapshot attributes
    # This example adds the specified attribute for the specified DB snapshot.
    my $ModifyDBSnapshotAttributeResult = $rds->ModifyDBSnapshotAttribute(
      'AttributeName'        => 'restore',
      'DBSnapshotIdentifier' => 'mydbsnapshot',
      'ValuesToAdd'          => ['all']
    );

    # Results:
    my $DBSnapshotAttributesResult =
      $ModifyDBSnapshotAttributeResult->DBSnapshotAttributesResult;

    # Returns a L<Paws::RDS::ModifyDBSnapshotAttributeResult> 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/rds/ModifyDBSnapshotAttribute

ATTRIBUTES

REQUIRED AttributeName => Str

The name of the DB snapshot attribute to modify.

To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB snapshot, set this value to restore.

To view the list of attributes available to modify, use the DescribeDBSnapshotAttributes API action.

REQUIRED DBSnapshotIdentifier => Str

The identifier for the DB snapshot to modify the attributes for.

ValuesToAdd => ArrayRef[Str|Undef]

A list of DB snapshot attributes to add to the attribute specified by AttributeName.

To authorize other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all Amazon Web Services accounts.

ValuesToRemove => ArrayRef[Str|Undef]

A list of DB snapshot attributes to remove from the attribute specified by AttributeName.

To remove authorization for other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot.

SEE ALSO

This class forms part of Paws, documenting arguments for method ModifyDBSnapshotAttribute in Paws::RDS

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