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.

SetIdentityPoolRolesInput

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

type SetIdentityPoolRolesInput struct { IdentityPoolId *string `min:"1" type:"string" required:"true"` RoleMappings map[string]*RoleMapping `type:"map"` Roles map[string]*string `type:"map" required:"true"` }

Input to the SetIdentityPoolRoles action.

IdentityPoolId

Type: *string

An identity pool ID in the format REGION:GUID.

IdentityPoolId is a required field

RoleMappings

Type: map[string]*RoleMapping

How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

Up to 25 rules can be specified per identity provider.

Roles

Type: map[string]*string

The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN.

Roles is a required field

Method

GoString

func (s SetIdentityPoolRolesInput) GoString() string

GoString returns the string representation

SetIdentityPoolId

func (s *SetIdentityPoolRolesInput) SetIdentityPoolId(v string) *SetIdentityPoolRolesInput

SetIdentityPoolId sets the IdentityPoolId field's value.

SetRoleMappings

func (s *SetIdentityPoolRolesInput) SetRoleMappings(v map[string]*RoleMapping) *SetIdentityPoolRolesInput

SetRoleMappings sets the RoleMappings field's value.

SetRoles

func (s *SetIdentityPoolRolesInput) SetRoles(v map[string]*string) *SetIdentityPoolRolesInput

SetRoles sets the Roles field's value.

String

func (s SetIdentityPoolRolesInput) String() string

String returns the string representation

Validate

func (s *SetIdentityPoolRolesInput) Validate() error

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

On this page: