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

type Credentials struct { AccessToken *string `type:"string" sensitive:"true"` AccessTokenExpiration *time.Time `type:"timestamp"` RefreshToken *string `type:"string" sensitive:"true"` RefreshTokenExpiration *time.Time `type:"timestamp"` }

The credentials to use for federation.

AccessToken

Type: *string

An access token generated for a federated user to access Amazon Connect

AccessTokenExpiration

Type: *time.Time

A token generated with an expiration time for the session a user is logged in to Amazon Connect

RefreshToken

Type: *string

Renews a token generated for a user to access the Amazon Connect instance.

RefreshTokenExpiration

Type: *time.Time

Renews the expiration timer for a generated token.

Method

GoString

func (s Credentials) GoString() string

GoString returns the string representation

SetAccessToken

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

SetAccessToken sets the AccessToken field's value.

SetAccessTokenExpiration

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

SetAccessTokenExpiration sets the AccessTokenExpiration field's value.

SetRefreshToken

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

SetRefreshToken sets the RefreshToken field's value.

SetRefreshTokenExpiration

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

SetRefreshTokenExpiration sets the RefreshTokenExpiration field's value.

String

func (s Credentials) String() string

String returns the string representation

On this page: