Class CfnIdentityPoolRoleAttachmentProps
Properties for defining a CfnIdentityPoolRoleAttachment
.
public class CfnIdentityPoolRoleAttachmentProps : ICfnIdentityPoolRoleAttachmentProps
- Inheritance
-
CfnIdentityPoolRoleAttachmentProps
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var roles;
var cfnIdentityPoolRoleAttachmentProps = new CfnIdentityPoolRoleAttachmentProps {
IdentityPoolId = "identityPoolId",
// the properties below are optional
RoleMappings = new Dictionary<string, object> {
{ "roleMappingsKey", new RoleMappingProperty {
Type = "type",
// the properties below are optional
AmbiguousRoleResolution = "ambiguousRoleResolution",
IdentityProvider = "identityProvider",
RulesConfiguration = new RulesConfigurationTypeProperty {
Rules = new [] { new MappingRuleProperty {
Claim = "claim",
MatchType = "matchType",
RoleArn = "roleArn",
Value = "value"
} }
}
} }
},
Roles = roles
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
CfnIdentityPoolRoleAttachmentProps()
public CfnIdentityPoolRoleAttachmentProps()
Properties
IdentityPoolId
An identity pool ID in the format REGION:GUID
.
public string IdentityPoolId { get; set; }
Property Value
Remarks
RoleMappings
How users for a specific identity provider are mapped to roles.
public object? RoleMappings { get; set; }
Property Value
Remarks
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 .
Roles
The map of the roles associated with this pool.
public object? Roles { get; set; }
Property Value
Remarks
For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.