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 Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.
Synopsis
- data DeleteClientVpnEndpoint = DeleteClientVpnEndpoint' {}
- newDeleteClientVpnEndpoint :: Text -> DeleteClientVpnEndpoint
- deleteClientVpnEndpoint_dryRun :: Lens' DeleteClientVpnEndpoint (Maybe Bool)
- deleteClientVpnEndpoint_clientVpnEndpointId :: Lens' DeleteClientVpnEndpoint Text
- data DeleteClientVpnEndpointResponse = DeleteClientVpnEndpointResponse' {}
- newDeleteClientVpnEndpointResponse :: Int -> DeleteClientVpnEndpointResponse
- deleteClientVpnEndpointResponse_status :: Lens' DeleteClientVpnEndpointResponse (Maybe ClientVpnEndpointStatus)
- deleteClientVpnEndpointResponse_httpStatus :: Lens' DeleteClientVpnEndpointResponse Int
Creating a Request
data DeleteClientVpnEndpoint Source #
See: newDeleteClientVpnEndpoint
smart constructor.
DeleteClientVpnEndpoint' | |
|
Instances
newDeleteClientVpnEndpoint Source #
Create a value of DeleteClientVpnEndpoint
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:DeleteClientVpnEndpoint'
, deleteClientVpnEndpoint_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
.
DeleteClientVpnEndpoint
, deleteClientVpnEndpoint_clientVpnEndpointId
- The ID of the Client VPN to be deleted.
Request Lenses
deleteClientVpnEndpoint_dryRun :: Lens' DeleteClientVpnEndpoint (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
.
deleteClientVpnEndpoint_clientVpnEndpointId :: Lens' DeleteClientVpnEndpoint Text Source #
The ID of the Client VPN to be deleted.
Destructuring the Response
data DeleteClientVpnEndpointResponse Source #
See: newDeleteClientVpnEndpointResponse
smart constructor.
DeleteClientVpnEndpointResponse' | |
|
Instances
Generic DeleteClientVpnEndpointResponse Source # | |
Read DeleteClientVpnEndpointResponse Source # | |
Show DeleteClientVpnEndpointResponse Source # | |
Defined in Amazonka.EC2.DeleteClientVpnEndpoint | |
NFData DeleteClientVpnEndpointResponse Source # | |
Defined in Amazonka.EC2.DeleteClientVpnEndpoint rnf :: DeleteClientVpnEndpointResponse -> () # | |
Eq DeleteClientVpnEndpointResponse Source # | |
type Rep DeleteClientVpnEndpointResponse Source # | |
Defined in Amazonka.EC2.DeleteClientVpnEndpoint type Rep DeleteClientVpnEndpointResponse = D1 ('MetaData "DeleteClientVpnEndpointResponse" "Amazonka.EC2.DeleteClientVpnEndpoint" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteClientVpnEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClientVpnEndpointStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteClientVpnEndpointResponse Source #
Create a value of DeleteClientVpnEndpointResponse
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:
DeleteClientVpnEndpointResponse
, deleteClientVpnEndpointResponse_status
- The current state of the Client VPN endpoint.
$sel:httpStatus:DeleteClientVpnEndpointResponse'
, deleteClientVpnEndpointResponse_httpStatus
- The response's http status code.
Response Lenses
deleteClientVpnEndpointResponse_status :: Lens' DeleteClientVpnEndpointResponse (Maybe ClientVpnEndpointStatus) Source #
The current state of the Client VPN endpoint.
deleteClientVpnEndpointResponse_httpStatus :: Lens' DeleteClientVpnEndpointResponse Int Source #
The response's http status code.