AWS Native is in preview. AWS Classic is fully supported.
aws-native.cloudwatch.getCompositeAlarm
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
The AWS::CloudWatch::CompositeAlarm type specifies an alarm which aggregates the states of other Alarms (Metric or Composite Alarms) as defined by the AlarmRule expression
Using getCompositeAlarm
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCompositeAlarm(args: GetCompositeAlarmArgs, opts?: InvokeOptions): Promise<GetCompositeAlarmResult>
function getCompositeAlarmOutput(args: GetCompositeAlarmOutputArgs, opts?: InvokeOptions): Output<GetCompositeAlarmResult>
def get_composite_alarm(alarm_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCompositeAlarmResult
def get_composite_alarm_output(alarm_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCompositeAlarmResult]
func LookupCompositeAlarm(ctx *Context, args *LookupCompositeAlarmArgs, opts ...InvokeOption) (*LookupCompositeAlarmResult, error)
func LookupCompositeAlarmOutput(ctx *Context, args *LookupCompositeAlarmOutputArgs, opts ...InvokeOption) LookupCompositeAlarmResultOutput
> Note: This function is named LookupCompositeAlarm
in the Go SDK.
public static class GetCompositeAlarm
{
public static Task<GetCompositeAlarmResult> InvokeAsync(GetCompositeAlarmArgs args, InvokeOptions? opts = null)
public static Output<GetCompositeAlarmResult> Invoke(GetCompositeAlarmInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCompositeAlarmResult> getCompositeAlarm(GetCompositeAlarmArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:cloudwatch:getCompositeAlarm
arguments:
# arguments dictionary
The following arguments are supported:
- Alarm
Name string - The name of the Composite Alarm
- Alarm
Name string - The name of the Composite Alarm
- alarm
Name String - The name of the Composite Alarm
- alarm
Name string - The name of the Composite Alarm
- alarm_
name str - The name of the Composite Alarm
- alarm
Name String - The name of the Composite Alarm
getCompositeAlarm Result
The following output properties are available:
- Actions
Enabled bool - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- Actions
Suppressor string - Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
- Actions
Suppressor intExtension Period - Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
- Actions
Suppressor intWait Period - Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
- Alarm
Actions List<string> - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
- Alarm
Description string - The description of the alarm
- Alarm
Rule string - Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
- Arn string
- Amazon Resource Name (ARN) of the alarm
- Insufficient
Data List<string>Actions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- Ok
Actions List<string> - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- List<Pulumi.
Aws Native. Outputs. Tag> - A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
- Actions
Enabled bool - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- Actions
Suppressor string - Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
- Actions
Suppressor intExtension Period - Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
- Actions
Suppressor intWait Period - Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
- Alarm
Actions []string - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
- Alarm
Description string - The description of the alarm
- Alarm
Rule string - Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
- Arn string
- Amazon Resource Name (ARN) of the alarm
- Insufficient
Data []stringActions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- Ok
Actions []string - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- Tag
- A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
- actions
Enabled Boolean - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- actions
Suppressor String - Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
- actions
Suppressor IntegerExtension Period - Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
- actions
Suppressor IntegerWait Period - Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
- alarm
Actions List<String> - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
- alarm
Description String - The description of the alarm
- alarm
Rule String - Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
- arn String
- Amazon Resource Name (ARN) of the alarm
- insufficient
Data List<String>Actions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- ok
Actions List<String> - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- List<Tag>
- A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
- actions
Enabled boolean - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- actions
Suppressor string - Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
- actions
Suppressor numberExtension Period - Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
- actions
Suppressor numberWait Period - Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
- alarm
Actions string[] - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
- alarm
Description string - The description of the alarm
- alarm
Rule string - Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
- arn string
- Amazon Resource Name (ARN) of the alarm
- insufficient
Data string[]Actions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- ok
Actions string[] - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- Tag[]
- A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
- actions_
enabled bool - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- actions_
suppressor str - Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
- actions_
suppressor_ intextension_ period - Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
- actions_
suppressor_ intwait_ period - Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
- alarm_
actions Sequence[str] - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
- alarm_
description str - The description of the alarm
- alarm_
rule str - Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
- arn str
- Amazon Resource Name (ARN) of the alarm
- insufficient_
data_ Sequence[str]actions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- ok_
actions Sequence[str] - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- Sequence[root_Tag]
- A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
- actions
Enabled Boolean - Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- actions
Suppressor String - Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
- actions
Suppressor NumberExtension Period - Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
- actions
Suppressor NumberWait Period - Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
- alarm
Actions List<String> - The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
- alarm
Description String - The description of the alarm
- alarm
Rule String - Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
- arn String
- Amazon Resource Name (ARN) of the alarm
- insufficient
Data List<String>Actions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- ok
Actions List<String> - The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
- List<Property Map>
- A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.