AWS ec2 documentation change
Summary
Added PowerShell V5 examples for ModifyNetworkInterfaceAttribute including security group updates and source/destination check configuration
Security assessment
Examples show security group management and network security configurations but no evidence of addressing specific vulnerabilities
Diff
diff --git a/ec2/latest/devguide/example_ec2_ModifyNetworkInterfaceAttribute_section.md b/ec2/latest/devguide/example_ec2_ModifyNetworkInterfaceAttribute_section.md index 7cd70d3e3..464384f8a 100644 --- a//ec2/latest/devguide/example_ec2_ModifyNetworkInterfaceAttribute_section.md +++ b//ec2/latest/devguide/example_ec2_ModifyNetworkInterfaceAttribute_section.md @@ -94,0 +95,32 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example modifies the specified network interface so that the specified attachment is deleted on termination.** + + + Edit-EC2NetworkInterfaceAttribute -NetworkInterfaceId eni-1a2b3c4d -Attachment_AttachmentId eni-attach-1a2b3c4d -Attachment_DeleteOnTermination $true + + +**Example 2: This example modifies the description of the specified network interface.** + + + Edit-EC2NetworkInterfaceAttribute -NetworkInterfaceId eni-1a2b3c4d -Description "my description" + + +**Example 3: This example modifies the security group for the specified network interface.** + + + Edit-EC2NetworkInterfaceAttribute -NetworkInterfaceId eni-1a2b3c4d -Groups sg-1a2b3c4d + + +**Example 4: This example disables source/destination checking for the specified network interface.** + + + Edit-EC2NetworkInterfaceAttribute -NetworkInterfaceId eni-1a2b3c4d -SourceDestCheck $false + + + * For API details, see [ModifyNetworkInterfaceAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +