Class CfnDomain.CognitoOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnDomain.CognitoOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.CognitoOptionsProperty>
- Enclosing interface:
CfnDomain.CognitoOptionsProperty
@Stability(Stable)
public static final class CfnDomain.CognitoOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.CognitoOptionsProperty>
A builder for
CfnDomain.CognitoOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDomain.CognitoOptionsProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDomain.CognitoOptionsProperty.getEnabled()
identityPoolId
(String identityPoolId) Sets the value ofCfnDomain.CognitoOptionsProperty.getIdentityPoolId()
Sets the value ofCfnDomain.CognitoOptionsProperty.getRoleArn()
userPoolId
(String userPoolId) Sets the value ofCfnDomain.CognitoOptionsProperty.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnDomain.CognitoOptionsProperty.getEnabled()
- Parameters:
enabled
- Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards. See Amazon Cognito authentication for OpenSearch Dashboards .- Returns:
this
-
enabled
Sets the value ofCfnDomain.CognitoOptionsProperty.getEnabled()
- Parameters:
enabled
- Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards. See Amazon Cognito authentication for OpenSearch Dashboards .- Returns:
this
-
identityPoolId
@Stability(Stable) public CfnDomain.CognitoOptionsProperty.Builder identityPoolId(String identityPoolId) Sets the value ofCfnDomain.CognitoOptionsProperty.getIdentityPoolId()
- Parameters:
identityPoolId
- The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication. Required if you enabled Cognito Authentication for OpenSearch Dashboards.- Returns:
this
-
roleArn
Sets the value ofCfnDomain.CognitoOptionsProperty.getRoleArn()
- Parameters:
roleArn
- TheAmazonOpenSearchServiceCognitoAccess
role that allows OpenSearch Service to configure your user pool and identity pool. Required if you enabled Cognito Authentication for OpenSearch Dashboards.- Returns:
this
-
userPoolId
Sets the value ofCfnDomain.CognitoOptionsProperty.getUserPoolId()
- Parameters:
userPoolId
- The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication. Required if you enabled Cognito Authentication for OpenSearch Dashboards.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.CognitoOptionsProperty>
- Returns:
- a new instance of
CfnDomain.CognitoOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-