@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:45.328Z") @Stability(value=Experimental) public interface RoleMappingRule 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.identitypool.*;
import software.amazon.awscdk.services.iam.*;
Role role;
RoleMappingRule roleMappingRule = RoleMappingRule.builder()
.claim("claim")
.claimValue("claimValue")
.mappedRole(role)
// the properties below are optional
.matchType(RoleMappingMatchType.EQUALS)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RoleMappingRule.Builder
A builder for
RoleMappingRule |
static class |
RoleMappingRule.Jsii$Proxy
An implementation for
RoleMappingRule |
| Modifier and Type | Method and Description |
|---|---|
static RoleMappingRule.Builder |
builder() |
String |
getClaim()
(experimental) The key sent in the token by the federated identity provider.
|
String |
getClaimValue()
(experimental) The value of the claim that must be matched.
|
IRole |
getMappedRole()
(experimental) The Role to be assumed when Claim Value is matched.
|
default RoleMappingMatchType |
getMatchType()
(experimental) How to match with the Claim value.
|
@Stability(value=Experimental) @NotNull String getClaim()
@Stability(value=Experimental) @NotNull String getClaimValue()
@Stability(value=Experimental) @NotNull IRole getMappedRole()
@Stability(value=Experimental) @Nullable default RoleMappingMatchType getMatchType()
Default: RoleMappingMatchType.EQUALS
@Stability(value=Experimental) static RoleMappingRule.Builder builder()
RoleMappingRule.Builder of RoleMappingRuleCopyright © 2022. All rights reserved.