@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:27.296Z") @Stability(value=Experimental) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIIdentityPoolRoleAttachment.Jsii$Default, IIdentityPoolRoleAttachment.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
IdentityPoolRoleAttachment(software.constructs.Construct scope,
String id,
IdentityPoolRoleAttachmentProps props) |
protected |
IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentityPoolId()
(experimental) Id of the underlying identity pool.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObjectRef objRef)
protected IdentityPoolRoleAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public IdentityPoolRoleAttachment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
IdentityPoolRoleAttachmentProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public String getIdentityPoolId()
getIdentityPoolId in interface IIdentityPoolRoleAttachmentCopyright © 2022. All rights reserved.