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.

CreateAccessKeyOutput

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

type CreateAccessKeyOutput struct { AccessKey *AccessKey `type:"structure" required:"true"` }

Contains the response to a successful CreateAccessKey request.

AccessKey

Contains information about an AWS access key.

This data type is used as a response element in the CreateAccessKey and ListAccessKeys operations.

The SecretAccessKey value is returned only in response to CreateAccessKey. You can get a secret access key only when you first create an access key; you cannot recover the secret access key later. If you lose a secret access key, you must create a new access key.

Method

GoString

func (s CreateAccessKeyOutput) GoString() string

GoString returns the string representation

SetAccessKey

func (s *CreateAccessKeyOutput) SetAccessKey(v *AccessKey) *CreateAccessKeyOutput

SetAccessKey sets the AccessKey field's value.

String

func (s CreateAccessKeyOutput) String() string

String returns the string representation

On this page: