Show / Hide Table of Contents

Interface CfnDomain.ILogPublishingOptionProperty

The AWS::Elasticsearch::Domain resource 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 .

Namespace: Amazon.CDK.AWS.Elasticsearch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDomain.ILogPublishingOptionProperty
Syntax (vb)
Public Interface CfnDomain.ILogPublishingOptionProperty
Remarks

Specifies whether the OpenSearch Service domain publishes the Elasticsearch application, search slow logs, or index slow logs to Amazon CloudWatch. Each option must be an object of name SEARCH_SLOW_LOGS , ES_APPLICATION_LOGS , INDEX_SLOW_LOGS , or AUDIT_LOGS depending on the type of logs you want to publish.

If you enable a slow log, you still have to enable the collection of slow logs using the Configuration API. To learn more, see Enabling log publishing ( AWS CLI) .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-logpublishingoption.html

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 logPublishingOptionProperty = new LogPublishingOptionProperty {
                 CloudWatchLogsLogGroupArn = "cloudWatchLogsLogGroupArn",
                 Enabled = false
             };

Synopsis

Properties

CloudWatchLogsLogGroupArn

Specifies the CloudWatch log group to publish to.

Enabled

If true , enables the publishing of logs to CloudWatch.

Properties

CloudWatchLogsLogGroupArn

Specifies the CloudWatch log group to publish to.

string? CloudWatchLogsLogGroupArn { get; }
Property Value

string

Remarks

Required if you enable log publishing for the domain.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-logpublishingoption.html#cfn-elasticsearch-domain-logpublishingoption-cloudwatchlogsloggrouparn

Enabled

If true , enables the publishing of logs to CloudWatch.

object? Enabled { get; }
Property Value

object

Remarks

Default: false .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-logpublishingoption.html#cfn-elasticsearch-domain-logpublishingoption-enabled

Type union: either bool or IResolvable

Back to top Generated by DocFX