Discover Packages
github.com/awsdocs/aws-doc-sdk-examples/gov2
cloudwatch
CreateEnableMetricAlarm
command
Version:
v0.0.0-...-9d6317c
Opens a new window with list of versions in this module.
Published: Mar 2, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
CreateEnableMetricAlarmv2.go
This example enables the specified Amazon CloudWatch alarm.
go run CreateEnableMetricAlarmv2.go -n INSTANCE-NAME -i INSTANCE-ID -a ALARM-NAME
INSTANCE-NAME is the name of the Amazon Elastic Compute Cloud (Amazon EC2) instance for which the alarm is enabled.
INSTANCE-ID is the ID of the Amazon EC2 instance for which the alarm is enabled.
ALARM-NAME is the name of the alarm.
The unit test accepts similar values in config.json .
Expand ▾
Collapse ▴
Documentation
¶
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX - License - Identifier: Apache - 2.0
snippet-start:[cloudwatch.go-v2.CreateEnableMetricAlarm]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.