package
0.0.0-20250312200722-bc14b7464845
Repository: https://github.com/awsdocs/aws-doc-sdk-examples.git
Documentation: pkg.go.dev

# Functions

EnableAlarm creates an alarm that reboots an EC2 instance whenever the CPU utilization is greater than 70% Inputs: sess is the current session, which provides configuration for the SDK's service clients instanceName is the name of the EC2 instance instanceID is the ID of the EC2 instance alarmName is the name of the alarm Output: If successful, nil Otherwise, the error from a call to PutMetricAlarm or EnableAlarmActions.