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.

Credentials

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

type Credentials struct { AccessKeyId *string `min:"16" type:"string" required:"true"` Expiration *time.Time `type:"timestamp" required:"true"` SecretAccessKey *string `type:"string" required:"true"` SessionToken *string `type:"string" required:"true"` }

AWS credentials for API authentication.

AccessKeyId

Type: *string

The access key ID that identifies the temporary security credentials.

AccessKeyId is a required field

Expiration

Type: *time.Time

The date on which the current credentials expire.

Expiration is a required field

SecretAccessKey

Type: *string

The secret access key that can be used to sign requests.

SecretAccessKey is a required field

SessionToken

Type: *string

The token that users must pass to the service API to use the temporary credentials.

SessionToken is a required field

Method

GoString

func (s Credentials) GoString() string

GoString returns the string representation

SetAccessKeyId

func (s *Credentials) SetAccessKeyId(v string) *Credentials

SetAccessKeyId sets the AccessKeyId field's value.

SetExpiration

func (s *Credentials) SetExpiration(v time.Time) *Credentials

SetExpiration sets the Expiration field's value.

SetSecretAccessKey

func (s *Credentials) SetSecretAccessKey(v string) *Credentials

SetSecretAccessKey sets the SecretAccessKey field's value.

SetSessionToken

func (s *Credentials) SetSessionToken(v string) *Credentials

SetSessionToken sets the SessionToken field's value.

String

func (s Credentials) String() string

String returns the string representation

On this page: