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.

GetAccessKeyLastUsedOutput

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

type GetAccessKeyLastUsedOutput struct { AccessKeyLastUsed *AccessKeyLastUsed `type:"structure"` UserName *string `min:"1" type:"string"` }

Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action.

AccessKeyLastUsed

Contains information about the last time an AWS access key was used since IAM began tracking this information on April 22, 2015.

This data type is used as a response element in the GetAccessKeyLastUsed operation.

UserName

Type: *string

The name of the AWS IAM user that owns this access key.

Method

GoString

func (s GetAccessKeyLastUsedOutput) GoString() string

GoString returns the string representation

SetAccessKeyLastUsed

func (s *GetAccessKeyLastUsedOutput) SetAccessKeyLastUsed(v *AccessKeyLastUsed) *GetAccessKeyLastUsedOutput

SetAccessKeyLastUsed sets the AccessKeyLastUsed field's value.

SetUserName

func (s *GetAccessKeyLastUsedOutput) SetUserName(v string) *GetAccessKeyLastUsedOutput

SetUserName sets the UserName field's value.

String

func (s GetAccessKeyLastUsedOutput) String() string

String returns the string representation

On this page: