@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.468Z") @Stability(value=Stable) public class CfnIdentityPoolRoleAttachment extends CfnResource implements IInspectable
The AWS::Cognito::IdentityPoolRoleAttachment resource manages the role configuration for an Amazon Cognito identity pool.
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;
CfnIdentityPoolRoleAttachment cfnIdentityPoolRoleAttachment = CfnIdentityPoolRoleAttachment.Builder.create(this, "MyCfnIdentityPoolRoleAttachment")
.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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnIdentityPoolRoleAttachment.Builder
A fluent builder for
CfnIdentityPoolRoleAttachment. |
static interface |
CfnIdentityPoolRoleAttachment.MappingRuleProperty
Defines how to map a claim to a role ARN.
|
static interface |
CfnIdentityPoolRoleAttachment.RoleMappingProperty
`RoleMapping` is a property of the [AWS::Cognito::IdentityPoolRoleAttachment](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html) resource that defines the role-mapping attributes of an Amazon Cognito identity pool.
|
static interface |
CfnIdentityPoolRoleAttachment.RulesConfigurationTypeProperty
`RulesConfigurationType` is a subproperty of the [RoleMapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html) property that defines the rules to be used for mapping users to roles.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnIdentityPoolRoleAttachment(Construct scope,
String id,
CfnIdentityPoolRoleAttachmentProps props)
Create a new `AWS::Cognito::IdentityPoolRoleAttachment`.
|
protected |
CfnIdentityPoolRoleAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnIdentityPoolRoleAttachment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getIdentityPoolId()
An identity pool ID in the format `REGION:GUID` .
|
Object |
getRoleMappings()
How users for a specific identity provider are mapped to roles.
|
Object |
getRoles()
The map of the roles associated with this pool.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setIdentityPoolId(String value)
An identity pool ID in the format `REGION:GUID` .
|
void |
setRoleMappings(IResolvable value)
How users for a specific identity provider are mapped to roles.
|
void |
setRoleMappings(Map<String,Object> value)
How users for a specific identity provider are mapped to roles.
|
void |
setRoles(Object value)
The map of the roles associated with this pool.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnIdentityPoolRoleAttachment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnIdentityPoolRoleAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnIdentityPoolRoleAttachment(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnIdentityPoolRoleAttachmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getIdentityPoolId()
@Stability(value=Stable)
public void setIdentityPoolId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getRoles()
For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
@Stability(value=Stable)
public void setRoles(@NotNull
Object value)
For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
@Stability(value=Stable) @Nullable public Object getRoleMappings()
This is a string to the RoleMapping object map. The string identifies the identity provider. For example: graph.facebook.com or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id .
If the IdentityProvider field isn't provided in this object, the string is used as the identity provider name.
For more information, see the RoleMapping property .
@Stability(value=Stable)
public void setRoleMappings(@Nullable
IResolvable value)
This is a string to the RoleMapping object map. The string identifies the identity provider. For example: graph.facebook.com or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id .
If the IdentityProvider field isn't provided in this object, the string is used as the identity provider name.
For more information, see the RoleMapping property .
@Stability(value=Stable)
public void setRoleMappings(@Nullable
Map<String,Object> value)
This is a string to the RoleMapping object map. The string identifies the identity provider. For example: graph.facebook.com or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id .
If the IdentityProvider field isn't provided in this object, the string is used as the identity provider name.
For more information, see the RoleMapping property .
Copyright © 2022. All rights reserved.