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.

DecryptInput

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

type DecryptInput struct { CiphertextBlob []byte `min:"1" type:"blob" required:"true"` EncryptionContext map[string]*string `type:"map"` GrantTokens []*string `type:"list"` }

CiphertextBlob

Type: []byte

Ciphertext to be decrypted. The blob includes metadata.

CiphertextBlob is automatically base64 encoded/decoded by the SDK.

CiphertextBlob is a required field

EncryptionContext

Type: map[string]*string

The encryption context. If this was specified in the Encrypt function, it must be specified here or the decryption operation will fail. For more information, see Encryption Context (https://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html).

GrantTokens

Type: []*string

A list of grant tokens.

For more information, see Grant Tokens (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) in the AWS Key Management Service Developer Guide.

Method

GoString

func (s DecryptInput) GoString() string

GoString returns the string representation

SetCiphertextBlob

func (s *DecryptInput) SetCiphertextBlob(v []byte) *DecryptInput

SetCiphertextBlob sets the CiphertextBlob field's value.

SetEncryptionContext

func (s *DecryptInput) SetEncryptionContext(v map[string]*string) *DecryptInput

SetEncryptionContext sets the EncryptionContext field's value.

SetGrantTokens

func (s *DecryptInput) SetGrantTokens(v []*string) *DecryptInput

SetGrantTokens sets the GrantTokens field's value.

String

func (s DecryptInput) String() string

String returns the string representation

Validate

func (s *DecryptInput) Validate() error

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

On this page: