Interface ICfnIdentityPoolRoleAttachmentProps
Properties for defining a CfnIdentityPoolRoleAttachment
.
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public interface ICfnIdentityPoolRoleAttachmentProps
Syntax (vb)
Public Interface ICfnIdentityPoolRoleAttachmentProps
Remarks
ExampleMetadata: fixture=_generated
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
};
Synopsis
Properties
IdentityPoolId | An identity pool ID in the format |
RoleMappings | How users for a specific identity provider are mapped to roles. |
Roles | The map of the roles associated with this pool. |
Properties
IdentityPoolId
An identity pool ID in the format REGION:GUID
.
string IdentityPoolId { get; }
Property Value
System.String
Remarks
RoleMappings
How users for a specific identity provider are mapped to roles.
virtual object RoleMappings { get; }
Property Value
System.Object
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.
virtual object Roles { get; }
Property Value
System.Object
Remarks
For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.