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.

GetParametersForImportOutput

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

type GetParametersForImportOutput struct { ImportToken []byte `min:"1" type:"blob"` KeyId *string `min:"1" type:"string"` ParametersValidTo *time.Time `type:"timestamp"` PublicKey []byte `min:"1" type:"blob" sensitive:"true"` }

ImportToken

Type: []byte

The import token to send in a subsequent ImportKeyMaterial request.

ImportToken is automatically base64 encoded/decoded by the SDK.

KeyId

Type: *string

The identifier of the CMK to use in a subsequent ImportKeyMaterial request. This is the same CMK specified in the GetParametersForImport request.

ParametersValidTo

Type: *time.Time

The time at which the import token and public key are no longer valid. After this time, you cannot use them to make an ImportKeyMaterial request and you must send another GetParametersForImport request to get new ones.

PublicKey

Type: []byte

The public key to use to encrypt the key material before importing it with ImportKeyMaterial.

PublicKey is automatically base64 encoded/decoded by the SDK.

Method

GoString

func (s GetParametersForImportOutput) GoString() string

GoString returns the string representation

SetImportToken

func (s *GetParametersForImportOutput) SetImportToken(v []byte) *GetParametersForImportOutput

SetImportToken sets the ImportToken field's value.

SetKeyId

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

SetKeyId sets the KeyId field's value.

SetParametersValidTo

func (s *GetParametersForImportOutput) SetParametersValidTo(v time.Time) *GetParametersForImportOutput

SetParametersValidTo sets the ParametersValidTo field's value.

SetPublicKey

func (s *GetParametersForImportOutput) SetPublicKey(v []byte) *GetParametersForImportOutput

SetPublicKey sets the PublicKey field's value.

String

func (s GetParametersForImportOutput) String() string

String returns the string representation

On this page: