Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.
Synopsis
- data DeleteVpc = DeleteVpc' {}
- newDeleteVpc :: Text -> DeleteVpc
- deleteVpc_dryRun :: Lens' DeleteVpc (Maybe Bool)
- deleteVpc_vpcId :: Lens' DeleteVpc Text
- data DeleteVpcResponse = DeleteVpcResponse' {
- newDeleteVpcResponse :: DeleteVpcResponse
Creating a Request
See: newDeleteVpc
smart constructor.
DeleteVpc' | |
|
Instances
Create a value of DeleteVpc
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DeleteVpc'
, deleteVpc_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
.
DeleteVpc
, deleteVpc_vpcId
- The ID of the VPC.
Request Lenses
deleteVpc_dryRun :: Lens' DeleteVpc (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
.
Destructuring the Response
data DeleteVpcResponse Source #
See: newDeleteVpcResponse
smart constructor.
Instances
Generic DeleteVpcResponse Source # | |
Defined in Amazonka.EC2.DeleteVpc type Rep DeleteVpcResponse :: Type -> Type # from :: DeleteVpcResponse -> Rep DeleteVpcResponse x # to :: Rep DeleteVpcResponse x -> DeleteVpcResponse # | |
Read DeleteVpcResponse Source # | |
Defined in Amazonka.EC2.DeleteVpc | |
Show DeleteVpcResponse Source # | |
Defined in Amazonka.EC2.DeleteVpc showsPrec :: Int -> DeleteVpcResponse -> ShowS # show :: DeleteVpcResponse -> String # showList :: [DeleteVpcResponse] -> ShowS # | |
NFData DeleteVpcResponse Source # | |
Defined in Amazonka.EC2.DeleteVpc rnf :: DeleteVpcResponse -> () # | |
Eq DeleteVpcResponse Source # | |
Defined in Amazonka.EC2.DeleteVpc (==) :: DeleteVpcResponse -> DeleteVpcResponse -> Bool # (/=) :: DeleteVpcResponse -> DeleteVpcResponse -> Bool # | |
type Rep DeleteVpcResponse Source # | |
newDeleteVpcResponse :: DeleteVpcResponse Source #
Create a value of DeleteVpcResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.