Class CfnIdentityPoolPrincipalTag.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPoolPrincipalTag.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolPrincipalTag>
- Enclosing class:
CfnIdentityPoolPrincipalTag
@Stability(Stable)
public static final class CfnIdentityPoolPrincipalTag.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPoolPrincipalTag>
A fluent builder for
CfnIdentityPoolPrincipalTag
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
identityPoolId
(String identityPoolId) The identity pool that you want to associate with this principal tag map.identityProviderName
(String identityProviderName) The identity pool identity provider (IdP) that you want to associate with this principal tag map.principalTags
(Object principalTags) A JSON-formatted list of user claims and the principal tags that you want to associate with them.useDefaults
(Boolean useDefaults) Use a default set of mappings between claims and tags for this provider, instead of a custom map.useDefaults
(IResolvable useDefaults) Use a default set of mappings between claims and tags for this provider, instead of a custom map.
-
Method Details
-
create
@Stability(Stable) public static CfnIdentityPoolPrincipalTag.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnIdentityPoolPrincipalTag.Builder
.
-
identityPoolId
The identity pool that you want to associate with this principal tag map.- Parameters:
identityPoolId
- The identity pool that you want to associate with this principal tag map. This parameter is required.- Returns:
this
-
identityProviderName
@Stability(Stable) public CfnIdentityPoolPrincipalTag.Builder identityProviderName(String identityProviderName) The identity pool identity provider (IdP) that you want to associate with this principal tag map.- Parameters:
identityProviderName
- The identity pool identity provider (IdP) that you want to associate with this principal tag map. This parameter is required.- Returns:
this
-
principalTags
A JSON-formatted list of user claims and the principal tags that you want to associate with them.When Amazon Cognito requests credentials, it sets the value of the principal tag to the value of the user's claim.
- Parameters:
principalTags
- A JSON-formatted list of user claims and the principal tags that you want to associate with them. This parameter is required.- Returns:
this
-
useDefaults
Use a default set of mappings between claims and tags for this provider, instead of a custom map.- Parameters:
useDefaults
- Use a default set of mappings between claims and tags for this provider, instead of a custom map. This parameter is required.- Returns:
this
-
useDefaults
Use a default set of mappings between claims and tags for this provider, instead of a custom map.- Parameters:
useDefaults
- Use a default set of mappings between claims and tags for this provider, instead of a custom map. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolPrincipalTag>
- Returns:
- a newly built instance of
CfnIdentityPoolPrincipalTag
.
-