@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:42.459Z") public class IdentityPoolRoleAttachment extends Resource implements IIdentityPoolRoleAttachment
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.*; IdentityPool identityPool; IdentityPoolProviderUrl identityPoolProviderUrl; Role role; IdentityPoolRoleAttachment identityPoolRoleAttachment = IdentityPoolRoleAttachment.Builder.create(this, "MyIdentityPoolRoleAttachment") .identityPool(identityPool) // the properties below are optional .authenticatedRole(role) .roleMappings(List.of(IdentityPoolRoleMapping.builder() .providerUrl(identityPoolProviderUrl) // the properties below are optional .resolveAmbiguousRoles(false) .rules(List.of(RoleMappingRule.builder() .claim("claim") .claimValue("claimValue") .mappedRole(role) // the properties below are optional .matchType(RoleMappingMatchType.EQUALS) .build())) .useToken(false) .build())) .unauthenticatedRole(role) .build();
Modifier and Type | Class and Description |
---|---|
static class |
IdentityPoolRoleAttachment.Builder
(experimental) A fluent builder for
IdentityPoolRoleAttachment . |
IIdentityPoolRoleAttachment.Jsii$Default, IIdentityPoolRoleAttachment.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObjectRef objRef) |
|
IdentityPoolRoleAttachment(software.constructs.Construct scope,
java.lang.String id,
IdentityPoolRoleAttachmentProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdentityPoolId()
(experimental) Id of the underlying identity pool.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObjectRef objRef)
protected IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public IdentityPoolRoleAttachment(software.constructs.Construct scope, java.lang.String id, IdentityPoolRoleAttachmentProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getIdentityPoolId()
getIdentityPoolId
in interface IIdentityPoolRoleAttachment