@Generated(value="software.amazon.awssdk:codegen") public final class SNSConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SNSConfiguration.Builder,SNSConfiguration>
Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to that topic.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SNSConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SNSConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
roleArn()
The ARN of the IAM role that has access to the target SNS topic.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SNSConfiguration.Builder> |
serializableBuilderClass() |
SnsFormat |
snsFormat()
The format of the SNS topic.
|
String |
snsFormatAsString()
The format of the SNS topic.
|
String |
snsTopicArn()
The ARN of the target SNS topic.
|
SNSConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String roleArn()
The ARN of the IAM role that has access to the target SNS topic.
public final String snsTopicArn()
The ARN of the target SNS topic.
public final SnsFormat snsFormat()
The format of the SNS topic.
JSON – Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
default.
LONG_TEXT – Send human-readable alerts with information about the impacted timeseries and a link to
the anomaly detail page. We recommend this for email.
SHORT_TEXT – Send human-readable alerts with a link to the anomaly detail page. We recommend this
for SMS.
If the service returns an enum value that is not available in the current SDK version, snsFormat will
return SnsFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
snsFormatAsString().
JSON – Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is
the default.
LONG_TEXT – Send human-readable alerts with information about the impacted timeseries and a
link to the anomaly detail page. We recommend this for email.
SHORT_TEXT – Send human-readable alerts with a link to the anomaly detail page. We recommend
this for SMS.
SnsFormatpublic final String snsFormatAsString()
The format of the SNS topic.
JSON – Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the
default.
LONG_TEXT – Send human-readable alerts with information about the impacted timeseries and a link to
the anomaly detail page. We recommend this for email.
SHORT_TEXT – Send human-readable alerts with a link to the anomaly detail page. We recommend this
for SMS.
If the service returns an enum value that is not available in the current SDK version, snsFormat will
return SnsFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
snsFormatAsString().
JSON – Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is
the default.
LONG_TEXT – Send human-readable alerts with information about the impacted timeseries and a
link to the anomaly detail page. We recommend this for email.
SHORT_TEXT – Send human-readable alerts with a link to the anomaly detail page. We recommend
this for SMS.
SnsFormatpublic SNSConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SNSConfiguration.Builder,SNSConfiguration>public static SNSConfiguration.Builder builder()
public static Class<? extends SNSConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.