Documentation ¶
Index ¶
- func NewApplicationScalingAction_Override(a ApplicationScalingAction, ...)
- func NewAutoScalingAction_Override(a AutoScalingAction, stepScalingAction awsautoscaling.StepScalingAction)
- func NewEc2Action_Override(e Ec2Action, instanceAction Ec2InstanceAction)
- func NewSnsAction_Override(s SnsAction, topic awssns.ITopic)
- func NewSsmAction_Override(s SsmAction, severity OpsItemSeverity, category OpsItemCategory)
- func NewSsmIncidentAction_Override(s SsmIncidentAction, responsePlanName *string)
- type ApplicationScalingAction
- type AutoScalingAction
- type Ec2Action
- type Ec2InstanceAction
- type OpsItemCategory
- type OpsItemSeverity
- type SnsAction
- type SsmAction
- type SsmIncidentAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationScalingAction_Override ¶
func NewApplicationScalingAction_Override(a ApplicationScalingAction, stepScalingAction awsapplicationautoscaling.StepScalingAction)
func NewAutoScalingAction_Override ¶
func NewAutoScalingAction_Override(a AutoScalingAction, stepScalingAction awsautoscaling.StepScalingAction)
func NewEc2Action_Override ¶
func NewEc2Action_Override(e Ec2Action, instanceAction Ec2InstanceAction)
func NewSnsAction_Override ¶
func NewSsmAction_Override ¶ added in v2.11.0
func NewSsmAction_Override(s SsmAction, severity OpsItemSeverity, category OpsItemCategory)
func NewSsmIncidentAction_Override ¶ added in v2.38.0
func NewSsmIncidentAction_Override(s SsmIncidentAction, responsePlanName *string)
Types ¶
type ApplicationScalingAction ¶
type ApplicationScalingAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an ApplicationScaling StepScalingAction as an alarm action. Bind(_scope constructs.Construct, _alarm awscloudwatch.IAlarm) *awscloudwatch.AlarmActionConfig }
Use an ApplicationAutoScaling StepScalingAction as an Alarm Action.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var stepScalingAction stepScalingAction applicationScalingAction := awscdk.Aws_cloudwatch_actions.NewApplicationScalingAction(stepScalingAction)
func NewApplicationScalingAction ¶
func NewApplicationScalingAction(stepScalingAction awsapplicationautoscaling.StepScalingAction) ApplicationScalingAction
type AutoScalingAction ¶
type AutoScalingAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an AutoScaling StepScalingAction as an alarm action. Bind(_scope constructs.Construct, _alarm awscloudwatch.IAlarm) *awscloudwatch.AlarmActionConfig }
Use an AutoScaling StepScalingAction as an Alarm Action.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var stepScalingAction stepScalingAction autoScalingAction := awscdk.Aws_cloudwatch_actions.NewAutoScalingAction(stepScalingAction)
func NewAutoScalingAction ¶
func NewAutoScalingAction(stepScalingAction awsautoscaling.StepScalingAction) AutoScalingAction
type Ec2Action ¶
type Ec2Action interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an EC2 action as an alarm action. Bind(_scope constructs.Construct, _alarm awscloudwatch.IAlarm) *awscloudwatch.AlarmActionConfig }
Use an EC2 action as an Alarm action.
Example:
// Alarm must be configured with an EC2 per-instance metric var alarm alarm // Attach a reboot when alarm triggers alarm.addAlarmAction( actions.NewEc2Action(actions.ec2InstanceAction_REBOOT))
func NewEc2Action ¶
func NewEc2Action(instanceAction Ec2InstanceAction) Ec2Action
type Ec2InstanceAction ¶
type Ec2InstanceAction string
Types of EC2 actions available.
Example:
// Alarm must be configured with an EC2 per-instance metric var alarm alarm // Attach a reboot when alarm triggers alarm.addAlarmAction( actions.NewEc2Action(actions.ec2InstanceAction_REBOOT))
const ( // Stop the instance. Ec2InstanceAction_STOP Ec2InstanceAction = "STOP" // Terminatethe instance. Ec2InstanceAction_TERMINATE Ec2InstanceAction = "TERMINATE" // Recover the instance. Ec2InstanceAction_RECOVER Ec2InstanceAction = "RECOVER" // Reboot the instance. Ec2InstanceAction_REBOOT Ec2InstanceAction = "REBOOT" )
type OpsItemCategory ¶ added in v2.11.0
type OpsItemCategory string
Types of OpsItem category available.
Example:
var alarm alarm // Create an OpsItem with specific severity and category when alarm triggers alarm.addAlarmAction( actions.NewSsmAction(actions.opsItemSeverity_CRITICAL, actions.opsItemCategory_PERFORMANCE))
const ( // Set the category to availability. OpsItemCategory_AVAILABILITY OpsItemCategory = "AVAILABILITY" // Set the category to cost. OpsItemCategory_COST OpsItemCategory = "COST" // Set the category to performance. OpsItemCategory_PERFORMANCE OpsItemCategory = "PERFORMANCE" // Set the category to recovery. OpsItemCategory_RECOVERY OpsItemCategory = "RECOVERY" // Set the category to security. OpsItemCategory_SECURITY OpsItemCategory = "SECURITY" )
type OpsItemSeverity ¶ added in v2.11.0
type OpsItemSeverity string
Types of OpsItem severity available.
Example:
var alarm alarm // Create an OpsItem with specific severity and category when alarm triggers alarm.addAlarmAction( actions.NewSsmAction(actions.opsItemSeverity_CRITICAL, actions.opsItemCategory_PERFORMANCE))
const ( // Set the severity to critical. OpsItemSeverity_CRITICAL OpsItemSeverity = "CRITICAL" // Set the severity to high. OpsItemSeverity_HIGH OpsItemSeverity = "HIGH" // Set the severity to medium. OpsItemSeverity_MEDIUM OpsItemSeverity = "MEDIUM" // Set the severity to low. OpsItemSeverity_LOW OpsItemSeverity = "LOW" )
type SnsAction ¶
type SnsAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an SNS topic as an alarm action. Bind(_scope constructs.Construct, _alarm awscloudwatch.IAlarm) *awscloudwatch.AlarmActionConfig }
Use an SNS topic as an alarm action.
Example:
import cw_actions "github.com/aws/aws-cdk-go/awscdk" var alarm alarm topic := sns.NewTopic(this, jsii.String("Topic")) alarm.addAlarmAction(cw_actions.NewSnsAction(topic))
func NewSnsAction ¶
type SsmAction ¶ added in v2.11.0
type SsmAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an SSM OpsItem action as an alarm action. Bind(_scope constructs.Construct, _alarm awscloudwatch.IAlarm) *awscloudwatch.AlarmActionConfig }
Use an SSM OpsItem action as an Alarm action.
Example:
var alarm alarm // Create an OpsItem with specific severity and category when alarm triggers alarm.addAlarmAction( actions.NewSsmAction(actions.opsItemSeverity_CRITICAL, actions.opsItemCategory_PERFORMANCE))
func NewSsmAction ¶ added in v2.11.0
func NewSsmAction(severity OpsItemSeverity, category OpsItemCategory) SsmAction
type SsmIncidentAction ¶ added in v2.38.0
type SsmIncidentAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an SSM Incident as an alarm action based on an Incident Manager Response Plan. Bind(_scope constructs.Construct, _alarm awscloudwatch.IAlarm) *awscloudwatch.AlarmActionConfig }
Use an SSM Incident Response Plan as an Alarm action.
Example:
var alarm alarm // Create an Incident Manager incident based on a specific response plan alarm.addAlarmAction( actions.NewSsmIncidentAction(jsii.String("ResponsePlanName")))
func NewSsmIncidentAction ¶ added in v2.38.0
func NewSsmIncidentAction(responsePlanName *string) SsmIncidentAction
Source Files ¶
- awscloudwatchactions.go
- awscloudwatchactions_ApplicationScalingAction.go
- awscloudwatchactions_AutoScalingAction.go
- awscloudwatchactions_Ec2Action.go
- awscloudwatchactions_Ec2InstanceAction.go
- awscloudwatchactions_OpsItemCategory.go
- awscloudwatchactions_OpsItemSeverity.go
- awscloudwatchactions_SnsAction.go
- awscloudwatchactions_SsmAction.go
- awscloudwatchactions_SsmIncidentAction.go
Click to show internal directories.
Click to hide internal directories.