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.

GenerateRandomInput

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

type GenerateRandomInput struct { CustomKeyStoreId *string `min:"1" type:"string"` NumberOfBytes *int64 `min:"1" type:"integer"` }

CustomKeyStoreId

Type: *string

Generates the random byte string in the AWS CloudHSM cluster that is associated with the specified custom key store (https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

NumberOfBytes

Type: *int64

The length of the byte string.

Method

GoString

func (s GenerateRandomInput) GoString() string

GoString returns the string representation

SetCustomKeyStoreId

func (s *GenerateRandomInput) SetCustomKeyStoreId(v string) *GenerateRandomInput

SetCustomKeyStoreId sets the CustomKeyStoreId field's value.

SetNumberOfBytes

func (s *GenerateRandomInput) SetNumberOfBytes(v int64) *GenerateRandomInput

SetNumberOfBytes sets the NumberOfBytes field's value.

String

func (s GenerateRandomInput) String() string

String returns the string representation

Validate

func (s *GenerateRandomInput) Validate() error

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

On this page: