Class CfnIdentityPoolRoleAttachment.Builder

java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment>
Enclosing class:
CfnIdentityPoolRoleAttachment

@Stability(Stable) public static final class CfnIdentityPoolRoleAttachment.Builder extends Object implements software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment>
A fluent builder for CfnIdentityPoolRoleAttachment.
  • Method Details

    • create

      @Stability(Stable) public static CfnIdentityPoolRoleAttachment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnIdentityPoolRoleAttachment.Builder.
    • identityPoolId

      @Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder identityPoolId(String identityPoolId)
      An identity pool ID in the format REGION:GUID .

      Parameters:
      identityPoolId - An identity pool ID in the format REGION:GUID . This parameter is required.
      Returns:
      this
    • roleMappings

      @Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder roleMappings(IResolvable roleMappings)
      How users for a specific identity provider are mapped to roles.

      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 .

      Parameters:
      roleMappings - How users for a specific identity provider are mapped to roles. This parameter is required.
      Returns:
      this
    • roleMappings

      @Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder roleMappings(Map<String,? extends Object> roleMappings)
      How users for a specific identity provider are mapped to roles.

      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 .

      Parameters:
      roleMappings - How users for a specific identity provider are mapped to roles. This parameter is required.
      Returns:
      this
    • roles

      @Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder roles(Object roles)
      The map of the roles associated with this pool.

      For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.

      Parameters:
      roles - The map of the roles associated with this pool. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnIdentityPoolRoleAttachment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment>
      Returns:
      a newly built instance of CfnIdentityPoolRoleAttachment.