aws ec2 modify-network-interface-attribute
Modifies the specified network interface attribute. AWS CLI reference
11 options Its page in the AWS CLI reference
Options
--associate-public-ip-addressIndicates whether to assign a public IPv4 address to a network interface.--associated-subnet-idsA list of subnet IDs to associate with the network interface.--attachmentInformation about the interface attachment.--connection-tracking-specificationA connection tracking specification.--descriptionA description for the network interface.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--ena-srd-specificationUpdates the ENA Express configuration for the network interface that’s attached to the instance.--enable-primary-ipv6If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address.--groupsChanges the security groups for the network interface.--network-interface-idThe ID of the network interface.--source-dest-checkEnable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.