Interface CognitoOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CognitoOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.579Z")
@Stability(Stable)
public interface CognitoOptions
extends software.amazon.jsii.JsiiSerializable
Configures Amazon OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.
Example:
Domain.Builder.create(this, "Domain") .cognitoDashboardsAuth(CognitoOptions.builder() .identityPoolId("test-identity-pool-id") .userPoolId("test-user-pool-id") .role(role) .build()) .version(openSearchVersion) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCognitoOptions
static final class
An implementation forCognitoOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic CognitoOptions.Builder
builder()
The Amazon Cognito identity pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication.getRole()
A role that allows Amazon OpenSearch Service to configure your user pool and identity pool.The Amazon Cognito user pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIdentityPoolId
The Amazon Cognito identity pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication. -
getRole
A role that allows Amazon OpenSearch Service to configure your user pool and identity pool.It must have the
AmazonESCognitoAccess
policy attached to it. -
getUserPoolId
The Amazon Cognito user pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication. -
builder
- Returns:
- a
CognitoOptions.Builder
ofCognitoOptions
-