Learn R Programming

paws.compute (version 0.1.12)

ec2_delete_subnet: Deletes the specified subnet

Description

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

Usage

ec2_delete_subnet(SubnetId, DryRun)

Value

An empty list.

Arguments

SubnetId

[required] The ID of the subnet.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Request syntax

svc$delete_subnet(
  SubnetId = "string",
  DryRun = TRUE|FALSE
)

Examples

Run this code
if (FALSE) {
# This example deletes the specified subnet.
svc$delete_subnet(
  SubnetId = "subnet-9d4a7b6c"
)
}

Run the code above in your browser using DataLab