Class CfnIdentityPoolRoleAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachmentProps>
- Enclosing interface:
CfnIdentityPoolRoleAttachmentProps
@Stability(Stable)
public static final class CfnIdentityPoolRoleAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachmentProps>
A builder for
CfnIdentityPoolRoleAttachmentProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.identityPoolId
(String identityPoolId) Sets the value ofCfnIdentityPoolRoleAttachmentProps.getIdentityPoolId()
roleMappings
(Map<String, ? extends Object> roleMappings) Sets the value ofCfnIdentityPoolRoleAttachmentProps.getRoleMappings()
roleMappings
(IResolvable roleMappings) Sets the value ofCfnIdentityPoolRoleAttachmentProps.getRoleMappings()
Sets the value ofCfnIdentityPoolRoleAttachmentProps.getRoles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identityPoolId
@Stability(Stable) public CfnIdentityPoolRoleAttachmentProps.Builder identityPoolId(String identityPoolId) Sets the value ofCfnIdentityPoolRoleAttachmentProps.getIdentityPoolId()
- Parameters:
identityPoolId
- An identity pool ID in the formatREGION:GUID
. This parameter is required.- Returns:
this
-
roleMappings
@Stability(Stable) public CfnIdentityPoolRoleAttachmentProps.Builder roleMappings(IResolvable roleMappings) Sets the value ofCfnIdentityPoolRoleAttachmentProps.getRoleMappings()
- Parameters:
roleMappings
- How users for a specific identity provider are mapped to roles. This is a string to theRoleMapping
object map. The string identifies the identity provider. For example:graph.facebook.com
orcognito-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 .
- Returns:
this
-
roleMappings
@Stability(Stable) public CfnIdentityPoolRoleAttachmentProps.Builder roleMappings(Map<String, ? extends Object> roleMappings) Sets the value ofCfnIdentityPoolRoleAttachmentProps.getRoleMappings()
- Parameters:
roleMappings
- How users for a specific identity provider are mapped to roles. This is a string to theRoleMapping
object map. The string identifies the identity provider. For example:graph.facebook.com
orcognito-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 .
- Returns:
this
-
roles
Sets the value ofCfnIdentityPoolRoleAttachmentProps.getRoles()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolRoleAttachmentProps>
- Returns:
- a new instance of
CfnIdentityPoolRoleAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-