@Stability(value=Stable)
public static interface CfnIdentityPoolRoleAttachment.RoleMappingProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
RoleMappingProperty roleMappingProperty = RoleMappingProperty.builder()
.type("type")
// the properties below are optional
.ambiguousRoleResolution("ambiguousRoleResolution")
.identityProvider("identityProvider")
.rulesConfiguration(RulesConfigurationTypeProperty.builder()
.rules(List.of(MappingRuleProperty.builder()
.claim("claim")
.matchType("matchType")
.roleArn("roleArn")
.value("value")
.build()))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder
A builder for
CfnIdentityPoolRoleAttachment.RoleMappingProperty |
static class |
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Jsii$Proxy
An implementation for
CfnIdentityPoolRoleAttachment.RoleMappingProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder |
builder() |
default String |
getAmbiguousRoleResolution()
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.
|
default String |
getIdentityProvider()
Identifier for the identity provider for which the role is mapped.
|
default Object |
getRulesConfiguration()
The rules to be used for mapping users to roles.
|
String |
getType()
The role-mapping type.
|
@Stability(value=Stable) @NotNull String getType()
Token uses cognito:roles and cognito:preferred_role claims from the Amazon Cognito identity provider token to map groups to roles. Rules attempts to match claims from the token to map to a role.
Valid values are Token or Rules .
@Stability(value=Stable) @Nullable default String getAmbiguousRoleResolution()
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Valid values are AuthenticatedRole or Deny .
@Stability(value=Stable) @Nullable default String getIdentityProvider()
For example: graph.facebook.com or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id (http://cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id) . This is the identity provider that is used by the user for authentication.
If the identity provider property isn't provided, the key of the entry in the RoleMappings map is used as the identity provider.
@Stability(value=Stable) @Nullable default Object getRulesConfiguration()
If you specify "Rules" as the role-mapping type, RulesConfiguration is required.
@Stability(value=Stable) static CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder builder()
Copyright © 2022. All rights reserved.