You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CognitoIdentity::Types::MappingRule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing MappingRule as input to an Aws::Client method, you can use a vanilla Hash:

{
  claim: "ClaimName", # required
  match_type: "Equals", # required, accepts Equals, Contains, StartsWith, NotEqual
  value: "ClaimValue", # required
  role_arn: "ARNString", # required
}

A rule that maps a claim name, a claim value, and a match type to a role ARN.

Instance Attribute Summary collapse

Instance Attribute Details

#claimString

The claim name that must be present in the token, for example, \"isAdmin\" or \"paid\".

Returns:

  • (String)

    The claim name that must be present in the token, for example, \"isAdmin\" or \"paid\".

#match_typeString

The match condition that specifies how closely the claim value in the IdP token must match Value.

Possible values:

  • Equals
  • Contains
  • StartsWith
  • NotEqual

Returns:

  • (String)

    The match condition that specifies how closely the claim value in the IdP token must match Value.

#role_arnString

The role ARN.

Returns:

  • (String)

    The role ARN.

#valueString

A brief string that the claim must match, for example, \"paid\" or \"yes\".

Returns:

  • (String)

    A brief string that the claim must match, for example, \"paid\" or \"yes\".