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

Class: Aws::Redshift::Types::CreateSnapshotCopyGrantMessage

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb

Overview

Note:

When making an API call, you may pass CreateSnapshotCopyGrantMessage data as a hash:

{
  snapshot_copy_grant_name: "String", # required
  kms_key_id: "String",
  tags: [
    {
      key: "String",
      value: "String",
    },
  ],
}

The result of the CreateSnapshotCopyGrant action.

Instance Attribute Summary collapse

Instance Attribute Details

#kms_key_idString

The unique identifier of the customer master key (CMK) to which to grant Amazon Redshift permission. If no key is specified, the default key is used.

Returns:

  • (String)


1904
1905
1906
1907
1908
1909
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 1904

class CreateSnapshotCopyGrantMessage < Struct.new(
  :snapshot_copy_grant_name,
  :kms_key_id,
  :tags)
  include Aws::Structure
end

#snapshot_copy_grant_nameString

The name of the snapshot copy grant. This name must be unique in the region for the AWS 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 AWS account.

Returns:

  • (String)


1904
1905
1906
1907
1908
1909
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 1904

class CreateSnapshotCopyGrantMessage < Struct.new(
  :snapshot_copy_grant_name,
  :kms_key_id,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

A list of tag instances.

Returns:



1904
1905
1906
1907
1908
1909
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 1904

class CreateSnapshotCopyGrantMessage < Struct.new(
  :snapshot_copy_grant_name,
  :kms_key_id,
  :tags)
  include Aws::Structure
end