AWS code-library documentation change
Summary
Added PowerShell V5 examples for DescribeLifecycleHooks API including specific hook retrieval, group hooks, and all hooks
Security assessment
The change adds usage examples for lifecycle hook inspection but contains no security advisories, vulnerability fixes, or security configuration guidance. Lifecycle hooks are operational controls rather than security controls.
Diff
diff --git a/code-library/latest/ug/auto-scaling_example_auto-scaling_DescribeLifecycleHooks_section.md b/code-library/latest/ug/auto-scaling_example_auto-scaling_DescribeLifecycleHooks_section.md index a8eb4674e..1a522e9a7 100644 --- a//code-library/latest/ug/auto-scaling_example_auto-scaling_DescribeLifecycleHooks_section.md +++ b//code-library/latest/ug/auto-scaling_example_auto-scaling_DescribeLifecycleHooks_section.md @@ -96,0 +97,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)_. + + + +