@Stability(value=Stable)
public static interface CfnDomain.CognitoOptionsProperty
extends software.amazon.jsii.JsiiSerializable
The
AWS::Elasticsearch::Domainresource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticsearch.*;
CognitoOptionsProperty cognitoOptionsProperty = CognitoOptionsProperty.builder()
.enabled(false)
.identityPoolId("identityPoolId")
.roleArn("roleArn")
.userPoolId("userPoolId")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDomain.CognitoOptionsProperty.Builder
A builder for
CfnDomain.CognitoOptionsProperty |
static class |
CfnDomain.CognitoOptionsProperty.Jsii$Proxy
An implementation for
CfnDomain.CognitoOptionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDomain.CognitoOptionsProperty.Builder |
builder() |
default Object |
getEnabled()
Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.
|
default String |
getIdentityPoolId()
The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
|
default String |
getRoleArn()
The `AmazonESCognitoAccess` role that allows OpenSearch Service to configure your user pool and identity pool.
|
default String |
getUserPoolId()
The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
|
@Stability(value=Stable) @Nullable default Object getEnabled()
See Amazon Cognito authentication for OpenSearch Dashboards .
@Stability(value=Stable) @Nullable default String getIdentityPoolId()
Required if you enable Cognito authentication.
@Stability(value=Stable) @Nullable default String getRoleArn()
Required if you enable Cognito authentication.
@Stability(value=Stable) @Nullable default String getUserPoolId()
Required if you enable Cognito authentication.
@Stability(value=Stable) static CfnDomain.CognitoOptionsProperty.Builder builder()
Copyright © 2022. All rights reserved.