Class CognitoOptions.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CognitoOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CognitoOptions>
- Enclosing interface:
CognitoOptions
@Stability(Stable)
public static final class CognitoOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CognitoOptions>
A builder for
CognitoOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.identityPoolId
(String identityPoolId) Sets the value ofCognitoOptions.getIdentityPoolId()
Sets the value ofCognitoOptions.getRole()
userPoolId
(String userPoolId) Sets the value ofCognitoOptions.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identityPoolId
Sets the value ofCognitoOptions.getIdentityPoolId()
- Parameters:
identityPoolId
- The Amazon Cognito identity pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication. This parameter is required.- Returns:
this
-
role
Sets the value ofCognitoOptions.getRole()
- Parameters:
role
- A role that allows Amazon OpenSearch Service to configure your user pool and identity pool. This parameter is required. It must have theAmazonESCognitoAccess
policy attached to it.- Returns:
this
-
userPoolId
Sets the value ofCognitoOptions.getUserPoolId()
- Parameters:
userPoolId
- The Amazon Cognito user pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CognitoOptions>
- Returns:
- a new instance of
CognitoOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-