ModifyNetworkInterfaceAttribute#

Description#

Modify the specified attribute of the specified network interface.

Request Parameters#

Required parameters#

  • NetworkInterfaceId — The ID of the network interface.

    • Type: String

    • Required: Yes

Optional parameters#

  • Attachment.AttachmentId — The ID of the network interface attachment. Required when the DeleteOnTermination parameter is modified.

    • Type: String

    • Required: No

  • Attachment.DeleteOnTermination — Delete the network interface when the instance is terminated.

    • Type: String

    • Required: No

  • Description.Value — The description of the network interface.

    • Type: String

    • Required: No

  • SecurityGroupId.N — The IDs of security groups.

    • Type: Array of strings

    • Required: No

  • SourceDestCheck.Value — Indicates whether source/destination checking is enabled.

    • Type: Boolean

    • Required: No

Response Elements#

  • requestId — The request ID.

    • Type: String

  • returnTrue is returned if the request succeeds, and an error otherwise.

    • Type: Boolean

Examples#

c2-ec2 ModifyNetworkInterfaceAttribute NetworkInterfaceId eni-12345678 Description.Value new-description

c2-ec2 ModifyNetworkInterfaceAttribute NetworkInterfaceId eni-12345678 Attachment.AttachmentId eni-attach-12345678 Attachment.DeleteOnTermination False