Skip to content

/AWS1/CL_RSH=>CREATESNAPSHOTCOPYGRANT()

About CreateSnapshotCopyGrant

Creates a snapshot copy grant that permits Amazon Redshift to use an encrypted symmetric key from Key Management Service (KMS) to encrypt copied snapshots in a destination region.

For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption in the Amazon Redshift Cluster Management Guide.

Method Signature

IMPORTING

Required arguments:

IV_SNAPSHOTCOPYGRANTNAME TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services account.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • Alphabetic characters must be lowercase.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

  • Must be unique for all clusters within an Amazon Web Services account.

Optional arguments:

IV_KMSKEYID TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.

IT_TAGS TYPE /AWS1/CL_RSHTAG=>TT_TAGLIST TT_TAGLIST

A list of tag instances.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_RSHCRESNAPCOPYGRANTRS /AWS1/CL_RSHCRESNAPCOPYGRANTRS