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.

RetireGrantInput

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

type RetireGrantInput struct { GrantId *string `min:"1" type:"string"` GrantToken *string `min:"1" type:"string"` KeyId *string `min:"1" type:"string"` }

GrantId

Type: *string

Unique identifier of the grant to retire. The grant ID is returned in the response to a CreateGrant operation.

  • Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123

GrantToken

Type: *string

Token that identifies the grant to be retired.

KeyId

Type: *string

The Amazon Resource Name (ARN) of the CMK associated with the grant.

For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab

Method

GoString

func (s RetireGrantInput) GoString() string

GoString returns the string representation

SetGrantId

func (s *RetireGrantInput) SetGrantId(v string) *RetireGrantInput

SetGrantId sets the GrantId field's value.

SetGrantToken

func (s *RetireGrantInput) SetGrantToken(v string) *RetireGrantInput

SetGrantToken sets the GrantToken field's value.

SetKeyId

func (s *RetireGrantInput) SetKeyId(v string) *RetireGrantInput

SetKeyId sets the KeyId field's value.

String

func (s RetireGrantInput) String() string

String returns the string representation

Validate

func (s *RetireGrantInput) Validate() error

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

On this page: