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.

GenerateDataKeyOutput

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

type GenerateDataKeyOutput struct { CiphertextBlob []byte `min:"1" type:"blob"` KeyId *string `min:"1" type:"string"` Plaintext []byte `min:"1" type:"blob" sensitive:"true"` }

CiphertextBlob

Type: []byte

The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

CiphertextBlob is automatically base64 encoded/decoded by the SDK.

KeyId

Type: *string

The identifier of the CMK under which the data encryption key was generated and encrypted.

Plaintext

Type: []byte

The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.

Plaintext is automatically base64 encoded/decoded by the SDK.

Method

GoString

func (s GenerateDataKeyOutput) GoString() string

GoString returns the string representation

SetCiphertextBlob

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

SetCiphertextBlob sets the CiphertextBlob field's value.

SetKeyId

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

SetKeyId sets the KeyId field's value.

SetPlaintext

func (s *GenerateDataKeyOutput) SetPlaintext(v []byte) *GenerateDataKeyOutput

SetPlaintext sets the Plaintext field's value.

String

func (s GenerateDataKeyOutput) String() string

String returns the string representation

On this page: