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.

RoleMapping

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

type RoleMapping struct { AmbiguousRoleResolution *string `type:"string" enum:"AmbiguousRoleResolutionType"` RulesConfiguration *RulesConfigurationType `type:"structure"` Type *string `type:"string" required:"true" enum:"RoleMappingType"` }

A role mapping.

AmbiguousRoleResolution

Type: *string

If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.

Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type.

RulesConfiguration

A container for rules.

Type

Type: *string

The role mapping type. Token will use cognito:roles and cognito:preferred_role claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.

Type is a required field

Method

GoString

func (s RoleMapping) GoString() string

GoString returns the string representation

SetAmbiguousRoleResolution

func (s *RoleMapping) SetAmbiguousRoleResolution(v string) *RoleMapping

SetAmbiguousRoleResolution sets the AmbiguousRoleResolution field's value.

SetRulesConfiguration

func (s *RoleMapping) SetRulesConfiguration(v *RulesConfigurationType) *RoleMapping

SetRulesConfiguration sets the RulesConfiguration field's value.

SetType

func (s *RoleMapping) SetType(v string) *RoleMapping

SetType sets the Type field's value.

String

func (s RoleMapping) String() string

String returns the string representation

Validate

func (s *RoleMapping) Validate() error

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

On this page: