AWS autoscaling documentation change
Summary
Added PowerShell V5 examples for DescribeLifecycleHooks API including specific command usage and output examples
Security assessment
The changes add usage examples for PowerShell commands but do not address security vulnerabilities or document security features. The examples focus on operational aspects of lifecycle hooks.
Diff
diff --git a/autoscaling/ec2/userguide/example_auto-scaling_DescribeLifecycleHooks_section.md b/autoscaling/ec2/userguide/example_auto-scaling_DescribeLifecycleHooks_section.md index 90707b556..4ffeea67e 100644 --- a//autoscaling/ec2/userguide/example_auto-scaling_DescribeLifecycleHooks_section.md +++ b//autoscaling/ec2/userguide/example_auto-scaling_DescribeLifecycleHooks_section.md @@ -94,0 +95,39 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example describes the specified lifecycle hook.** + + + Get-ASLifecycleHook -AutoScalingGroupName my-asg -LifecycleHookName myLifecycleHook + + +**Output:** + + + AutoScalingGroupName : my-asg + DefaultResult : ABANDON + GlobalTimeout : 172800 + HeartbeatTimeout : 3600 + LifecycleHookName : myLifecycleHook + LifecycleTransition : auto-scaling:EC2_INSTANCE_LAUNCHING + NotificationMetadata : + NotificationTargetARN : arn:aws:sns:us-west-2:123456789012:my-topic + RoleARN : arn:aws:iam::123456789012:role/my-iam-role + +**Example 2: This example describes all lifecycle hooks for the specified Auto Scaling group.** + + + Get-ASLifecycleHook -AutoScalingGroupName my-asg + + +**Example 3: This example describes all lifecycle hooks for all your Auto Scaling groups.** + + + Get-ASLifecycleHook + + + * For API details, see [DescribeLifecycleHooks](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +