@Generated(value="software.amazon.awssdk:codegen") public final class LogPublishingOption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogPublishingOption.Builder,LogPublishingOption>
Specifies whether the Amazon OpenSearch Service domain publishes the OpenSearch application and slow logs to Amazon CloudWatch. For more information, see Monitoring OpenSearch logs with Amazon CloudWatch Logs.
After you enable log publishing, you still have to enable the collection of slow logs using the OpenSearch REST API.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LogPublishingOption.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LogPublishingOption.Builder |
builder() |
String |
cloudWatchLogsLogGroupArn()
The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs to.
|
Boolean |
enabled()
Whether the log should be published.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LogPublishingOption.Builder> |
serializableBuilderClass() |
LogPublishingOption.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String cloudWatchLogsLogGroupArn()
The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs to.
public final Boolean enabled()
Whether the log should be published.
public LogPublishingOption.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LogPublishingOption.Builder,LogPublishingOption>public static LogPublishingOption.Builder builder()
public static Class<? extends LogPublishingOption.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.