ModifySubnetAttribute#

Description#

Request to change subnet parameters.

Request Parameters#

  • SubnetId — The ID of the subnet.

    • Type: String

    • Required: Yes

  • MapPublicIpOnLaunch — Indicates whether public IP addresses will be associated with instances created in this subnet.

    • Type: AttributeBooleanValue object

    • Required: No

    • Constraints: Addresses are associated only if there are available allocated Elastic IP addresses.

Response Elements#

  • requestId — The request ID.

    • Type: String

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

    • Type: Boolean

Examples#

c2-ec2 ModifySubnetAttribute SubnetId <subnet_id> MapPublicIpOnLaunch.Value false