AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateSnapshotCopyGrantInput

import "github.com/aws/aws-sdk-go/service/redshift"

type CreateSnapshotCopyGrantInput struct { KmsKeyId *string `type:"string"` SnapshotCopyGrantName *string `type:"string" required:"true"` Tags []*Tag `locationNameList:"Tag" type:"list"` }

The result of the CreateSnapshotCopyGrant action.

KmsKeyId

Type: *string

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.

SnapshotCopyGrantName

Type: *string

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.

SnapshotCopyGrantName is a required field

Tags

A tag consisting of a name/value pair for a resource.

Method

GoString

func (s CreateSnapshotCopyGrantInput) GoString() string

GoString returns the string representation

SetKmsKeyId

func (s *CreateSnapshotCopyGrantInput) SetKmsKeyId(v string) *CreateSnapshotCopyGrantInput

SetKmsKeyId sets the KmsKeyId field's value.

SetSnapshotCopyGrantName

func (s *CreateSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *CreateSnapshotCopyGrantInput

SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.

SetTags

func (s *CreateSnapshotCopyGrantInput) SetTags(v []*Tag) *CreateSnapshotCopyGrantInput

SetTags sets the Tags field's value.

String

func (s CreateSnapshotCopyGrantInput) String() string

String returns the string representation

Validate

func (s *CreateSnapshotCopyGrantInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: