AWS code-library documentation change
Summary
Added PowerShell V5 examples for network interface modifications including security groups and source/destination checks
Security assessment
Examples show security group management but no indication of patching vulnerabilities
Diff
diff --git a/code-library/latest/ug/ec2_example_ec2_ModifyNetworkInterfaceAttribute_section.md b/code-library/latest/ug/ec2_example_ec2_ModifyNetworkInterfaceAttribute_section.md index f9350fdfe..c48091172 100644 --- a//code-library/latest/ug/ec2_example_ec2_ModifyNetworkInterfaceAttribute_section.md +++ b//code-library/latest/ug/ec2_example_ec2_ModifyNetworkInterfaceAttribute_section.md @@ -96,0 +97,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)_. + + + +