Interface CfnDomain.ICognitoOptionsProperty
Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.
Namespace: Amazon.CDK.AWS.Elasticsearch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDomain.ICognitoOptionsProperty
Syntax (vb)
Public Interface CfnDomain.ICognitoOptionsProperty
Remarks
The <code>AWS::Elasticsearch::Domain</code> resource is being replaced by the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html">AWS::OpenSearchService::Domain</a> 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 <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html#rename-resource">New resource types</a> in the <em>Amazon OpenSearch Service Developer Guide</em> .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Elasticsearch;
var cognitoOptionsProperty = new CognitoOptionsProperty {
Enabled = false,
IdentityPoolId = "identityPoolId",
RoleArn = "roleArn",
UserPoolId = "userPoolId"
};
Synopsis
Properties
Enabled | Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards. |
IdentityPoolId | The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication. |
RoleArn | The |
UserPoolId | The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication. |
Properties
Enabled
Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.
object? Enabled { get; }
Property Value
Remarks
IdentityPoolId
The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
string? IdentityPoolId { get; }
Property Value
Remarks
Required if you enable Cognito authentication.
RoleArn
The AmazonESCognitoAccess
role that allows OpenSearch Service to configure your user pool and identity pool.
string? RoleArn { get; }
Property Value
Remarks
Required if you enable Cognito authentication.
UserPoolId
The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
string? UserPoolId { get; }
Property Value
Remarks
Required if you enable Cognito authentication.