Class IdentityPoolRoleAttachment
(experimental) Defines an Identity Pool Role Attachment.
Inherited Members
Namespace: Amazon.CDK.AWS.Cognito.IdentityPool
Assembly: Amazon.CDK.AWS.Cognito.IdentityPool.dll
Syntax (csharp)
public class IdentityPoolRoleAttachment : Resource, IIdentityPoolRoleAttachment, IResource, IConstruct, IDependable
Syntax (vb)
Public Class IdentityPoolRoleAttachment
Inherits Resource
Implements IIdentityPoolRoleAttachment, IResource, IConstruct, IDependable
Remarks
Stability: Experimental
Resource: AWS::Cognito::IdentityPoolRoleAttachment
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.IdentityPool;
using Amazon.CDK.AWS.IAM;
IdentityPool identityPool;
IdentityPoolProviderUrl identityPoolProviderUrl;
Role role;
var identityPoolRoleAttachment = new IdentityPoolRoleAttachment(this, "MyIdentityPoolRoleAttachment", new IdentityPoolRoleAttachmentProps {
IdentityPool = identityPool,
// the properties below are optional
AuthenticatedRole = role,
RoleMappings = new [] { new IdentityPoolRoleMapping {
ProviderUrl = identityPoolProviderUrl,
// the properties below are optional
ResolveAmbiguousRoles = false,
Rules = new [] { new RoleMappingRule {
Claim = "claim",
ClaimValue = "claimValue",
MappedRole = role,
// the properties below are optional
MatchType = RoleMappingMatchType.EQUALS
} },
UseToken = false
} },
UnauthenticatedRole = role
});
Synopsis
Constructors
IdentityPoolRoleAttachment(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
IdentityPoolRoleAttachment(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
IdentityPoolRoleAttachment(Construct, String, IIdentityPoolRoleAttachmentProps) |
Properties
IdentityPoolId | (experimental) Id of the underlying identity pool. |
Constructors
IdentityPoolRoleAttachment(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IdentityPoolRoleAttachment(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
IdentityPoolRoleAttachment(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IdentityPoolRoleAttachment(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
IdentityPoolRoleAttachment(Construct, String, IIdentityPoolRoleAttachmentProps)
public IdentityPoolRoleAttachment(Construct scope, string id, IIdentityPoolRoleAttachmentProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IIdentityPoolRoleAttachmentProps
Remarks
Stability: Experimental
Properties
IdentityPoolId
(experimental) Id of the underlying identity pool.
public virtual string IdentityPoolId { get; }
Property Value
System.String
Remarks
Stability: Experimental
Implements
Constructs.IConstruct