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/cognitoidentity"

type Credentials struct { AccessKeyId *string `type:"string"` Expiration *time.Time `type:"timestamp"` SecretKey *string `type:"string"` SessionToken *string `type:"string"` }

Credentials for the provided identity ID.

AccessKeyId

Type: *string

The Access Key portion of the credentials.

Expiration

Type: *time.Time

The date at which these credentials will expire.

SecretKey

Type: *string

The Secret Access Key portion of the credentials

SessionToken

Type: *string

The Session Token portion of the credentials

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.

SetSecretKey

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

SetSecretKey sets the SecretKey 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: