AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/auto-scaling_example_auto-scaling_PutLifecycleHook_section.md

Summary

Added PowerShell V5 example for PutLifecycleHook API demonstrating hook creation with SNS and IAM role

Security assessment

While the example shows security-related components (IAM roles), this is standard feature usage documentation rather than security guidance. No security best practices or warnings are included regarding role permissions or SNS security.

Diff

diff --git a/code-library/latest/ug/auto-scaling_example_auto-scaling_PutLifecycleHook_section.md b/code-library/latest/ug/auto-scaling_example_auto-scaling_PutLifecycleHook_section.md
index 006e5f36b..97e4f3f45 100644
--- a//code-library/latest/ug/auto-scaling_example_auto-scaling_PutLifecycleHook_section.md
+++ b//code-library/latest/ug/auto-scaling_example_auto-scaling_PutLifecycleHook_section.md
@@ -89,0 +90,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example adds the specified lifecycle hook to the specified Auto Scaling group.**
+    
+    
+    Write-ASLifecycleHook -AutoScalingGroupName my-asg -LifecycleHookName "myLifecycleHook" -LifecycleTransition "autoscaling:EC2_INSTANCE_LAUNCHING" -NotificationTargetARN "arn:aws:sns:us-west-2:123456789012:my-sns-topic" -RoleARN "arn:aws:iam::123456789012:role/my-iam-role"
+    
+
+  * For API details, see [PutLifecycleHook](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+