Class CfnIdentityPoolPrincipalTagProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPoolPrincipalTagProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolPrincipalTagProps>
- Enclosing interface:
CfnIdentityPoolPrincipalTagProps
@Stability(Stable)
public static final class CfnIdentityPoolPrincipalTagProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPoolPrincipalTagProps>
A builder for
CfnIdentityPoolPrincipalTagProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.identityPoolId
(String identityPoolId) Sets the value ofCfnIdentityPoolPrincipalTagProps.getIdentityPoolId()
identityProviderName
(String identityProviderName) Sets the value ofCfnIdentityPoolPrincipalTagProps.getIdentityProviderName()
principalTags
(Object principalTags) Sets the value ofCfnIdentityPoolPrincipalTagProps.getPrincipalTags()
useDefaults
(Boolean useDefaults) Sets the value ofCfnIdentityPoolPrincipalTagProps.getUseDefaults()
useDefaults
(IResolvable useDefaults) Sets the value ofCfnIdentityPoolPrincipalTagProps.getUseDefaults()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identityPoolId
@Stability(Stable) public CfnIdentityPoolPrincipalTagProps.Builder identityPoolId(String identityPoolId) Sets the value ofCfnIdentityPoolPrincipalTagProps.getIdentityPoolId()
- 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 CfnIdentityPoolPrincipalTagProps.Builder identityProviderName(String identityProviderName) Sets the value ofCfnIdentityPoolPrincipalTagProps.getIdentityProviderName()
- 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
@Stability(Stable) public CfnIdentityPoolPrincipalTagProps.Builder principalTags(Object principalTags) Sets the value ofCfnIdentityPoolPrincipalTagProps.getPrincipalTags()
- Parameters:
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.- Returns:
this
-
useDefaults
Sets the value ofCfnIdentityPoolPrincipalTagProps.getUseDefaults()
- Parameters:
useDefaults
- Use a default set of mappings between claims and tags for this provider, instead of a custom map.- Returns:
this
-
useDefaults
@Stability(Stable) public CfnIdentityPoolPrincipalTagProps.Builder useDefaults(IResolvable useDefaults) Sets the value ofCfnIdentityPoolPrincipalTagProps.getUseDefaults()
- Parameters:
useDefaults
- Use a default set of mappings between claims and tags for this provider, instead of a custom map.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolPrincipalTagProps>
- Returns:
- a new instance of
CfnIdentityPoolPrincipalTagProps
- Throws:
NullPointerException
- if any required attribute was not provided
-