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)
- type ApplicationScalingAction
- type AutoScalingAction
- type Ec2Action
- type Ec2InstanceAction
- type OpsItemCategory
- type OpsItemSeverity
- type SnsAction
- type SsmAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationScalingAction_Override ¶
func NewApplicationScalingAction_Override(a ApplicationScalingAction, stepScalingAction awsapplicationautoscaling.StepScalingAction)
Experimental.
func NewAutoScalingAction_Override ¶
func NewAutoScalingAction_Override(a AutoScalingAction, stepScalingAction awsautoscaling.StepScalingAction)
Experimental.
func NewEc2Action_Override ¶
func NewEc2Action_Override(e Ec2Action, instanceAction Ec2InstanceAction)
Experimental.
func NewSnsAction_Override ¶
Experimental.
func NewSsmAction_Override ¶
func NewSsmAction_Override(s SsmAction, severity OpsItemSeverity, category OpsItemCategory)
Experimental.
Types ¶
type ApplicationScalingAction ¶
type ApplicationScalingAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an ApplicationScaling StepScalingAction as an alarm action. // Experimental. Bind(_scope awscdk.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)
Experimental.
func NewApplicationScalingAction ¶
func NewApplicationScalingAction(stepScalingAction awsapplicationautoscaling.StepScalingAction) ApplicationScalingAction
Experimental.
type AutoScalingAction ¶
type AutoScalingAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an AutoScaling StepScalingAction as an alarm action. // Experimental. Bind(_scope awscdk.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)
Experimental.
func NewAutoScalingAction ¶
func NewAutoScalingAction(stepScalingAction awsautoscaling.StepScalingAction) AutoScalingAction
Experimental.
type Ec2Action ¶
type Ec2Action interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an EC2 action as an alarm action. // Experimental. Bind(_scope awscdk.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))
Experimental.
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))
Experimental.
const ( // Stop the instance. // Experimental. Ec2InstanceAction_STOP Ec2InstanceAction = "STOP" // Terminatethe instance. // Experimental. Ec2InstanceAction_TERMINATE Ec2InstanceAction = "TERMINATE" // Recover the instance. // Experimental. Ec2InstanceAction_RECOVER Ec2InstanceAction = "RECOVER" // Reboot the instance. // Experimental. Ec2InstanceAction_REBOOT Ec2InstanceAction = "REBOOT" )
type OpsItemCategory ¶
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))
Experimental.
const ( // Set the category to availability. // Experimental. OpsItemCategory_AVAILABILITY OpsItemCategory = "AVAILABILITY" // Set the category to cost. // Experimental. OpsItemCategory_COST OpsItemCategory = "COST" // Set the category to performance. // Experimental. OpsItemCategory_PERFORMANCE OpsItemCategory = "PERFORMANCE" // Set the category to recovery. // Experimental. OpsItemCategory_RECOVERY OpsItemCategory = "RECOVERY" // Set the category to security. // Experimental. OpsItemCategory_SECURITY OpsItemCategory = "SECURITY" )
type OpsItemSeverity ¶
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))
Experimental.
const ( // Set the severity to critical. // Experimental. OpsItemSeverity_CRITICAL OpsItemSeverity = "CRITICAL" // Set the severity to high. // Experimental. OpsItemSeverity_HIGH OpsItemSeverity = "HIGH" // Set the severity to medium. // Experimental. OpsItemSeverity_MEDIUM OpsItemSeverity = "MEDIUM" // Set the severity to low. // Experimental. 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. // Experimental. Bind(_scope awscdk.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))
Experimental.
type SsmAction ¶
type SsmAction interface { awscloudwatch.IAlarmAction // Returns an alarm action configuration to use an SSM OpsItem action as an alarm action. // Experimental. Bind(_scope awscdk.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))
Experimental.
func NewSsmAction ¶
func NewSsmAction(severity OpsItemSeverity, category OpsItemCategory) SsmAction
Experimental.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.