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.

EncryptOutput

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

type EncryptOutput struct { CiphertextBlob []byte `min:"1" type:"blob"` KeyId *string `min:"1" type:"string"` }

CiphertextBlob

Type: []byte

The encrypted plaintext. 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 ID of the key used during encryption.

Method

GoString

func (s EncryptOutput) GoString() string

GoString returns the string representation

SetCiphertextBlob

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

SetCiphertextBlob sets the CiphertextBlob field's value.

SetKeyId

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

SetKeyId sets the KeyId field's value.

String

func (s EncryptOutput) String() string

String returns the string representation

On this page: