ec2_delete_subnet: Deletes the specified subnet

Description Usage Arguments Value Request syntax Examples

View source: R/ec2_operations.R

Description

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

Usage

1
ec2_delete_subnet(SubnetId, DryRun)

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.

Value

An empty list.

Request syntax

1
2
3
4
svc$delete_subnet(
  SubnetId = "string",
  DryRun = TRUE|FALSE
)

Examples

1
2
3
4
5
6
7
## Not run: 
# This example deletes the specified subnet.
svc$delete_subnet(
  SubnetId = "subnet-9d4a7b6c"
)

## End(Not run)

paws.compute documentation built on March 7, 2021, 5:10 p.m.