@Stability(value=Stable)
public static interface CfnDomain.LogPublishingOptionProperty
extends software.amazon.jsii.JsiiSerializable
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) .
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.*;
LogPublishingOptionProperty logPublishingOptionProperty = LogPublishingOptionProperty.builder()
.cloudWatchLogsLogGroupArn("cloudWatchLogsLogGroupArn")
.enabled(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDomain.LogPublishingOptionProperty.Builder
A builder for
CfnDomain.LogPublishingOptionProperty |
static class |
CfnDomain.LogPublishingOptionProperty.Jsii$Proxy
An implementation for
CfnDomain.LogPublishingOptionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDomain.LogPublishingOptionProperty.Builder |
builder() |
default String |
getCloudWatchLogsLogGroupArn()
Specifies the CloudWatch log group to publish to.
|
default Object |
getEnabled()
If `true` , enables the publishing of logs to CloudWatch.
|
@Stability(value=Stable) @Nullable default String getCloudWatchLogsLogGroupArn()
Required if you enable log publishing for the domain.
@Stability(value=Stable) @Nullable default Object getEnabled()
Default: false .
@Stability(value=Stable) static CfnDomain.LogPublishingOptionProperty.Builder builder()
Copyright © 2022. All rights reserved.