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