Interface CfnIdentityPoolRoleAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnIdentityPoolRoleAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:07.751Z")
@Stability(Stable)
public interface CfnIdentityPoolRoleAttachmentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnIdentityPoolRoleAttachment.
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.*;
Object roles;
CfnIdentityPoolRoleAttachmentProps cfnIdentityPoolRoleAttachmentProps = CfnIdentityPoolRoleAttachmentProps.builder()
.identityPoolId("identityPoolId")
// the properties below are optional
.roleMappings(Map.of(
"roleMappingsKey", 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()))
.roles(roles)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnIdentityPoolRoleAttachmentPropsstatic final classAn implementation forCfnIdentityPoolRoleAttachmentProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIdentityPoolId
An identity pool ID in the formatREGION:GUID.- See Also:
-
getRoleMappings
How users for a specific identity provider are mapped to roles.This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- See Also:
-
getRoles
The map of the roles associated with this pool.For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
- See Also:
-
builder
-