amazonka-ec2-1.3.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteSubnet

Contents

Description

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

See: AWS API Reference for DeleteSubnet.

Synopsis

Creating a Request

deleteSubnet Source

Creates a value of DeleteSubnet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ddDryRun :: Lens' DeleteSubnet (Maybe Bool) Source

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.

ddSubnetId :: Lens' DeleteSubnet Text Source

The ID of the subnet.

Destructuring the Response

deleteSubnetResponse :: DeleteSubnetResponse Source

Creates a value of DeleteSubnetResponse with the minimum fields required to make a request.