Resource Type definition for AWS::CloudWatch::Alert. An alert runs a SQL or PromQL query in a CloudWatch Omni space on a fixed interval, compares the result against warning and critical thresholds, and sends notifications to Amazon SNS topics or integrations when its state changes.
Create Alert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Alert(resource_name: str,
args: AlertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alert(resource_name: str,
opts: Optional[ResourceOptions] = None,
profile_id: Optional[str] = None,
rule: Optional[AlertRuleArgs] = None,
space_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
notification_rules: Optional[Sequence[AlertNotificationRuleArgs]] = None,
notifications_enabled: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
public Alert(String name, AlertArgs args)
public Alert(String name, AlertArgs args, CustomResourceOptions options)
type: aws-native:cloudwatch:Alert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_cloudwatch_alert" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
AlertArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
AlertArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
AlertArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
AlertArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
AlertArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Alert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Alert resource accepts the following input properties:
- ProfileId
string
- The ID of the access profile the alert uses to run its query and send notifications.
- Rule
AlertRuleArgs
- SpaceId
string
- The ID of the space to create the alert in. Changing this value replaces the alert.
- Description
string
- A description of the alert.
- Name
string
- The display name of the alert. Names don't need to be unique within a space; the alert is identified by AlertId.
- NotificationRules
[]AlertNotificationRuleArgs
- The notification rules that determine when and where notifications are sent.
- NotificationsEnabled
bool
- Whether the alert sends notifications. When false, the alert is still evaluated and records its state, but sends nothing. Defaults to true.
- Tags
TagArgs
- An array of key-value pairs to apply to this resource.
- profile_id
string
- The ID of the access profile the alert uses to run its query and send notifications.
- rule
object
- space_id
string
- The ID of the space to create the alert in. Changing this value replaces the alert.
- description
string
- A description of the alert.
- name
string
- The display name of the alert. Names don't need to be unique within a space; the alert is identified by AlertId.
- notification_rules
list(object)
- The notification rules that determine when and where notifications are sent.
- notifications_enabled
bool
- Whether the alert sends notifications. When false, the alert is still evaluated and records its state, but sends nothing. Defaults to true.
- tags
list(object)
- An array of key-value pairs to apply to this resource.
- profileId
String
- The ID of the access profile the alert uses to run its query and send notifications.
- rule
AlertRule
- spaceId
String
- The ID of the space to create the alert in. Changing this value replaces the alert.
- description
String
- A description of the alert.
- name
String
- The display name of the alert. Names don't need to be unique within a space; the alert is identified by AlertId.
- notificationRules
List<AlertNotificationRule>
- The notification rules that determine when and where notifications are sent.
- notificationsEnabled
Boolean
- Whether the alert sends notifications. When false, the alert is still evaluated and records its state, but sends nothing. Defaults to true.
- tags
List<Tag>
- An array of key-value pairs to apply to this resource.
- profileId
string
- The ID of the access profile the alert uses to run its query and send notifications.
- rule
AlertRule
- spaceId
string
- The ID of the space to create the alert in. Changing this value replaces the alert.
- description
string
- A description of the alert.
- name
string
- The display name of the alert. Names don't need to be unique within a space; the alert is identified by AlertId.
- notificationRules
AlertNotificationRule[]
- The notification rules that determine when and where notifications are sent.
- notificationsEnabled
boolean
- Whether the alert sends notifications. When false, the alert is still evaluated and records its state, but sends nothing. Defaults to true.
- tags
Tag[]
- An array of key-value pairs to apply to this resource.
- profile_id
str
- The ID of the access profile the alert uses to run its query and send notifications.
- rule
AlertRuleArgs
- space_id
str
- The ID of the space to create the alert in. Changing this value replaces the alert.
- description
str
- A description of the alert.
- name
str
- The display name of the alert. Names don't need to be unique within a space; the alert is identified by AlertId.
- notification_rules
Sequence[AlertNotificationRuleArgs]
- The notification rules that determine when and where notifications are sent.
- notifications_enabled
bool
- Whether the alert sends notifications. When false, the alert is still evaluated and records its state, but sends nothing. Defaults to true.
- tags
Sequence[TagArgs]
- An array of key-value pairs to apply to this resource.
- profileId
String
- The ID of the access profile the alert uses to run its query and send notifications.
- rule
Property Map
- spaceId
String
- The ID of the space to create the alert in. Changing this value replaces the alert.
- description
String
- A description of the alert.
- name
String
- The display name of the alert. Names don't need to be unique within a space; the alert is identified by AlertId.
- notificationRules
List<Property Map>
- The notification rules that determine when and where notifications are sent.
- notificationsEnabled
Boolean
- Whether the alert sends notifications. When false, the alert is still evaluated and records its state, but sends nothing. Defaults to true.
- tags
List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:
- AccountId
string
- The AWS account ID that owns the alert.
- AlertId
string
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- Arn
string
- The Amazon Resource Name (ARN) of the alert.
- CreatedAt
string
- The time the alert was created, in ISO 8601 format (UTC).
- Id
string
- The provider-assigned unique ID for this managed resource.
- UpdatedAt
string
- The time the alert was last updated, in ISO 8601 format (UTC).
- AccountId
string
- The AWS account ID that owns the alert.
- AlertId
string
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- Arn
string
- The Amazon Resource Name (ARN) of the alert.
- CreatedAt
string
- The time the alert was created, in ISO 8601 format (UTC).
- Id
string
- The provider-assigned unique ID for this managed resource.
- UpdatedAt
string
- The time the alert was last updated, in ISO 8601 format (UTC).
- account_id
string
- The AWS account ID that owns the alert.
- alert_id
string
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- arn
string
- The Amazon Resource Name (ARN) of the alert.
- created_at
string
- The time the alert was created, in ISO 8601 format (UTC).
- id
string
- The provider-assigned unique ID for this managed resource.
- updated_at
string
- The time the alert was last updated, in ISO 8601 format (UTC).
- accountId
String
- The AWS account ID that owns the alert.
- alertId
String
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- arn
String
- The Amazon Resource Name (ARN) of the alert.
- createdAt
String
- The time the alert was created, in ISO 8601 format (UTC).
- id
String
- The provider-assigned unique ID for this managed resource.
- updatedAt
String
- The time the alert was last updated, in ISO 8601 format (UTC).
- accountId
string
- The AWS account ID that owns the alert.
- alertId
string
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- arn
string
- The Amazon Resource Name (ARN) of the alert.
- createdAt
string
- The time the alert was created, in ISO 8601 format (UTC).
- id
string
- The provider-assigned unique ID for this managed resource.
- updatedAt
string
- The time the alert was last updated, in ISO 8601 format (UTC).
- account_id
str
- The AWS account ID that owns the alert.
- alert_id
str
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- arn
str
- The Amazon Resource Name (ARN) of the alert.
- created_at
str
- The time the alert was created, in ISO 8601 format (UTC).
- id
str
- The provider-assigned unique ID for this managed resource.
- updated_at
str
- The time the alert was last updated, in ISO 8601 format (UTC).
- accountId
String
- The AWS account ID that owns the alert.
- alertId
String
- The ID of the alert, assigned by CloudWatch when the alert is created. It doesn't change when the alert is updated, and it is the resource ID in the alert's ARN.
- arn
String
- The Amazon Resource Name (ARN) of the alert.
- createdAt
String
- The time the alert was created, in ISO 8601 format (UTC).
- id
String
- The provider-assigned unique ID for this managed resource.
- updatedAt
String
- The time the alert was last updated, in ISO 8601 format (UTC).
Look up Existing Alert Resource
Get an existing Alert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Alert get(String name, Output<String> id, CustomResourceOptions options)
resources: existingAlert: type: aws-native:cloudwatch:Alert get: id: ${id}
import {
to = aws-native_cloudwatch_alert.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
AlertState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
AlertCondition, AlertConditionArgs
The thresholds that set the alert's state. Specify at least one of WarningThreshold and CriticalThreshold.
- Comparator
AlertConditionComparator
- The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
- CriticalThreshold
float64
- The value at which the alert enters the CRITICAL state.
- ThresholdField
string
- The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.
- ThresholdMode
AlertConditionThresholdMode
- How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
- WarningThreshold
float64
- The value at which the alert enters the WARNING state.
- comparator
"GT" | "LT" | "GTE" | "LTE"
- The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
- critical_threshold
number
- The value at which the alert enters the CRITICAL state.
- threshold_field
string
- The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.
- threshold_mode
"COUNT_OF_RESULTS" | "FIELD_VALUE"
- How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
- warning_threshold
number
- The value at which the alert enters the WARNING state.
- comparator
AlertConditionComparator
- The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
- criticalThreshold
Double
- The value at which the alert enters the CRITICAL state.
- thresholdField
String
- The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.
- thresholdMode
AlertConditionThresholdMode
- How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
- warningThreshold
Double
- The value at which the alert enters the WARNING state.
- comparator
AlertConditionComparator
- The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
- criticalThreshold
number
- The value at which the alert enters the CRITICAL state.
- thresholdField
string
- The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.
- thresholdMode
AlertConditionThresholdMode
- How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
- warningThreshold
number
- The value at which the alert enters the WARNING state.
- comparator
AlertConditionComparator
- The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
- critical_threshold
float
- The value at which the alert enters the CRITICAL state.
- threshold_field
str
- The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.
- threshold_mode
AlertConditionThresholdMode
- How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
- warning_threshold
float
- The value at which the alert enters the WARNING state.
- comparator
"GT" | "LT" | "GTE" | "LTE"
- The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
- criticalThreshold
Number
- The value at which the alert enters the CRITICAL state.
- thresholdField
String
- The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.
- thresholdMode
"COUNT_OF_RESULTS" | "FIELD_VALUE"
- How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
- warningThreshold
Number
- The value at which the alert enters the WARNING state.
AlertConditionComparator
The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).
| Name | Value |
|---|
| Gt | GT |
| Lt | LT |
| Gte | GTE |
| Lte | LTE |
| Name | Value |
|---|
| AlertConditionComparatorGt | GT |
| AlertConditionComparatorLt | LT |
| AlertConditionComparatorGte | GTE |
| AlertConditionComparatorLte | LTE |
| Name | Value |
|---|
| Gt | GT |
| Lt | LT |
| Gte | GTE |
| Lte | LTE |
| Name | Value |
|---|
| Gt | GT |
| Lt | LT |
| Gte | GTE |
| Lte | LTE |
| Name | Value |
|---|
| GT | GT |
| LT | LT |
| GTE | GTE |
| LTE | LTE |
AlertConditionThresholdMode
How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.
| Name | Value |
|---|
| CountOfResults | COUNT_OF_RESULTS |
| FieldValue | FIELD_VALUE |
| Name | Value |
|---|
| AlertConditionThresholdModeCountOfResults | COUNT_OF_RESULTS |
| AlertConditionThresholdModeFieldValue | FIELD_VALUE |
| Value |
|---|
COUNT_OF_RESULTS |
FIELD_VALUE |
| Name | Value |
|---|
| CountOfResults | COUNT_OF_RESULTS |
| FieldValue | FIELD_VALUE |
| Name | Value |
|---|
| CountOfResults | COUNT_OF_RESULTS |
| FieldValue | FIELD_VALUE |
| Name | Value |
|---|
| COUNT_OF_RESULTS | COUNT_OF_RESULTS |
| FIELD_VALUE | FIELD_VALUE |
| Value |
|---|
COUNT_OF_RESULTS |
FIELD_VALUE |
AlertEvaluation, AlertEvaluationArgs
How often the alert is evaluated, and how long a change must last before the state changes.
- IntervalSeconds
int
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- PendingDurationSeconds
int
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- RecoveryDurationSeconds
int
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
- IntervalSeconds
int
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- PendingDurationSeconds
int
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- RecoveryDurationSeconds
int
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
- interval_seconds
number
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- pending_duration_seconds
number
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- recovery_duration_seconds
number
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
- intervalSeconds
Integer
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- pendingDurationSeconds
Integer
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- recoveryDurationSeconds
Integer
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
- intervalSeconds
number
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- pendingDurationSeconds
number
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- recoveryDurationSeconds
number
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
- interval_seconds
int
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- pending_duration_seconds
int
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- recovery_duration_seconds
int
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
- intervalSeconds
Number
- The time between evaluations, in seconds. Valid values: 30, 60, 120, 300, 600, 900, 1800, 3600.
- pendingDurationSeconds
Number
- How long a threshold breach must last before the alert changes state, in seconds. Must be a multiple of IntervalSeconds. 0 changes state immediately.
- recoveryDurationSeconds
Number
- How long the result must stay within its thresholds before the alert returns to OK, in seconds. Must be a multiple of IntervalSeconds. 0 returns to OK immediately.
AlertNoData, AlertNoDataArgs
How the alert behaves when an evaluation returns no data. If omitted, the alert reports NODATA.
- TreatAs
AlertNoDataTreatAs
- The state to report when an evaluation returns no data. Valid values: OK, WARNING, CRITICAL, NODATA.
- treatAs
AlertNoDataTreatAs
- The state to report when an evaluation returns no data. Valid values: OK, WARNING, CRITICAL, NODATA.
- treatAs
AlertNoDataTreatAs
- The state to report when an evaluation returns no data. Valid values: OK, WARNING, CRITICAL, NODATA.
AlertNoDataTreatAs
The state to report when an evaluation returns no data. Valid values: OK, WARNING, CRITICAL, NODATA.
| Name | Value |
|---|
| Ok | OK |
| Warning | WARNING |
| Critical | CRITICAL |
| Nodata | NODATA |
| Name | Value |
|---|
| AlertNoDataTreatAsOk | OK |
| AlertNoDataTreatAsWarning | WARNING |
| AlertNoDataTreatAsCritical | CRITICAL |
| AlertNoDataTreatAsNodata | NODATA |
| Value |
|---|
OK |
WARNING |
CRITICAL |
NODATA |
| Name | Value |
|---|
| Ok | OK |
| Warning | WARNING |
| Critical | CRITICAL |
| Nodata | NODATA |
| Name | Value |
|---|
| Ok | OK |
| Warning | WARNING |
| Critical | CRITICAL |
| Nodata | NODATA |
| Name | Value |
|---|
| OK | OK |
| WARNING | WARNING |
| CRITICAL | CRITICAL |
| NODATA | NODATA |
| Value |
|---|
OK |
WARNING |
CRITICAL |
NODATA |
AlertNotificationRule, AlertNotificationRuleArgs
A notification rule: which alert states trigger it, and where the notification is sent.
AlertQuery, AlertQueryArgs
The query the alert runs, and the language it is written in.
- expression
string
- The query expression. For PromQL, the series value is returned in a field named value.
- language
"SQL" | "PROMQL"
- The query language. Valid values: SQL, PROMQL.
- expression
String
- The query expression. For PromQL, the series value is returned in a field named value.
- language
"SQL" | "PROMQL"
- The query language. Valid values: SQL, PROMQL.
AlertQueryLanguage
The query language. Valid values: SQL, PROMQL.
| Name | Value |
|---|
| Sql | SQL |
| Promql | PROMQL |
| Name | Value |
|---|
| AlertQueryLanguageSql | SQL |
| AlertQueryLanguagePromql | PROMQL |
| Name | Value |
|---|
| Sql | SQL |
| Promql | PROMQL |
| Name | Value |
|---|
| Sql | SQL |
| Promql | PROMQL |
| Name | Value |
|---|
| SQL | SQL |
| PROMQL | PROMQL |
AlertRule, AlertRuleArgs
The rule that defines how the alert is evaluated.
AlertTarget, AlertTargetArgs
Where the notification is sent.
- Arn
string
- The ARN of the target. For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.
- Type
AlertTargetType
- The target type. Valid values: sns, slack, pagerduty.
- Metadata
map[string]string
- arn
string
- The ARN of the target. For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.
- type
"sns" | "slack" | "pagerduty"
- The target type. Valid values: sns, slack, pagerduty.
- metadata
map(string)
- arn
String
- The ARN of the target. For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.
- type
AlertTargetType
- The target type. Valid values: sns, slack, pagerduty.
- metadata
Map<String,String>
- arn
string
- The ARN of the target. For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.
- type
AlertTargetType
- The target type. Valid values: sns, slack, pagerduty.
- metadata
{[key: string]: string}
- arn
str
- The ARN of the target. For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.
- type
AlertTargetType
- The target type. Valid values: sns, slack, pagerduty.
- metadata
Mapping[str, str]
- arn
String
- The ARN of the target. For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.
- type
"sns" | "slack" | "pagerduty"
- The target type. Valid values: sns, slack, pagerduty.
- metadata
Map<String>
AlertTargetType
The target type. Valid values: sns, slack, pagerduty.
| Name | Value |
|---|
| Sns | sns |
| Slack | slack |
| Pagerduty | pagerduty |
| Name | Value |
|---|
| AlertTargetTypeSns | sns |
| AlertTargetTypeSlack | slack |
| AlertTargetTypePagerduty | pagerduty |
| Name | Value |
|---|
| Sns | sns |
| Slack | slack |
| Pagerduty | pagerduty |
| Name | Value |
|---|
| Sns | sns |
| Slack | slack |
| Pagerduty | pagerduty |
| Name | Value |
|---|
| SNS | sns |
| SLACK | slack |
| PAGERDUTY | pagerduty |
AlertTelemetryRule, AlertTelemetryRuleArgs
A rule that queries telemetry, evaluates the result against a condition, and sets how missing data is handled.
AlertTrigger, AlertTriggerArgs
The alert states that trigger the notification rule.
AlertTriggerStateValuesItem
| Name | Value |
|---|
| Ok | OK |
| Warning | WARNING |
| Critical | CRITICAL |
| Nodata | NODATA |
| Name | Value |
|---|
| AlertTriggerStateValuesItemOk | OK |
| AlertTriggerStateValuesItemWarning | WARNING |
| AlertTriggerStateValuesItemCritical | CRITICAL |
| AlertTriggerStateValuesItemNodata | NODATA |
| Value |
|---|
OK |
WARNING |
CRITICAL |
NODATA |
| Name | Value |
|---|
| Ok | OK |
| Warning | WARNING |
| Critical | CRITICAL |
| Nodata | NODATA |
| Name | Value |
|---|
| Ok | OK |
| Warning | WARNING |
| Critical | CRITICAL |
| Nodata | NODATA |
| Name | Value |
|---|
| OK | OK |
| WARNING | WARNING |
| CRITICAL | CRITICAL |
| NODATA | NODATA |
| Value |
|---|
OK |
WARNING |
CRITICAL |
NODATA |
Tag, TagArgs
A set of tags to apply to the resource.
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
str
- The key name of the tag
- value
str
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0