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.

PutEncryptionConfigInput

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

type PutEncryptionConfigInput struct { KeyId *string `min:"1" type:"string"` Type *string `type:"string" required:"true" enum:"EncryptionType"` }

KeyId

Type: *string

An AWS KMS customer master key (CMK) in one of the following formats:

  • Alias - The name of the key. For example, alias/MyKey.

  • Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456.

  • ARN - The full Amazon Resource Name of the key ID or alias. For example, arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Use this format to specify a key in a different account.

Omit this key if you set Type to NONE.

Type

Type: *string

The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.

Type is a required field

Method

GoString

func (s PutEncryptionConfigInput) GoString() string

GoString returns the string representation

SetKeyId

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

SetKeyId sets the KeyId field's value.

SetType

func (s *PutEncryptionConfigInput) SetType(v string) *PutEncryptionConfigInput

SetType sets the Type field's value.

String

func (s PutEncryptionConfigInput) String() string

String returns the string representation

Validate

func (s *PutEncryptionConfigInput) Validate() error

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

On this page: