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.

GetCredentialsForIdentityInput

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

type GetCredentialsForIdentityInput struct { CustomRoleArn *string `min:"20" type:"string"` IdentityId *string `min:"1" type:"string" required:"true"` Logins map[string]*string `type:"map"` }

Input to the GetCredentialsForIdentity action.

CustomRoleArn

Type: *string

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.

IdentityId

Type: *string

A unique identifier in the format REGION:GUID.

IdentityId is a required field

Logins

Type: map[string]*string

A set of optional name-value pairs that map provider names to provider tokens.

Method

GoString

func (s GetCredentialsForIdentityInput) GoString() string

GoString returns the string representation

SetCustomRoleArn

func (s *GetCredentialsForIdentityInput) SetCustomRoleArn(v string) *GetCredentialsForIdentityInput

SetCustomRoleArn sets the CustomRoleArn field's value.

SetIdentityId

func (s *GetCredentialsForIdentityInput) SetIdentityId(v string) *GetCredentialsForIdentityInput

SetIdentityId sets the IdentityId field's value.

SetLogins

func (s *GetCredentialsForIdentityInput) SetLogins(v map[string]*string) *GetCredentialsForIdentityInput

SetLogins sets the Logins field's value.

String

func (s GetCredentialsForIdentityInput) String() string

String returns the string representation

Validate

func (s *GetCredentialsForIdentityInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: