Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters.
Synopsis
- data DeleteHsm = DeleteHsm' {}
- newDeleteHsm :: Text -> DeleteHsm
- deleteHsm_eniId :: Lens' DeleteHsm (Maybe Text)
- deleteHsm_hsmId :: Lens' DeleteHsm (Maybe Text)
- deleteHsm_eniIp :: Lens' DeleteHsm (Maybe Text)
- deleteHsm_clusterId :: Lens' DeleteHsm Text
- data DeleteHsmResponse = DeleteHsmResponse' {
- hsmId :: Maybe Text
- httpStatus :: Int
- newDeleteHsmResponse :: Int -> DeleteHsmResponse
- deleteHsmResponse_hsmId :: Lens' DeleteHsmResponse (Maybe Text)
- deleteHsmResponse_httpStatus :: Lens' DeleteHsmResponse Int
Creating a Request
See: newDeleteHsm
smart constructor.
DeleteHsm' | |
|
Instances
Create a value of DeleteHsm
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:eniId:DeleteHsm'
, deleteHsm_eniId
- The identifier (ID) of the elastic network interface (ENI) of the HSM
that you are deleting.
$sel:hsmId:DeleteHsm'
, deleteHsm_hsmId
- The identifier (ID) of the HSM that you are deleting.
$sel:eniIp:DeleteHsm'
, deleteHsm_eniIp
- The IP address of the elastic network interface (ENI) of the HSM that
you are deleting.
$sel:clusterId:DeleteHsm'
, deleteHsm_clusterId
- The identifier (ID) of the cluster that contains the HSM that you are
deleting.
Request Lenses
deleteHsm_eniId :: Lens' DeleteHsm (Maybe Text) Source #
The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.
deleteHsm_hsmId :: Lens' DeleteHsm (Maybe Text) Source #
The identifier (ID) of the HSM that you are deleting.
deleteHsm_eniIp :: Lens' DeleteHsm (Maybe Text) Source #
The IP address of the elastic network interface (ENI) of the HSM that you are deleting.
deleteHsm_clusterId :: Lens' DeleteHsm Text Source #
The identifier (ID) of the cluster that contains the HSM that you are deleting.
Destructuring the Response
data DeleteHsmResponse Source #
See: newDeleteHsmResponse
smart constructor.
DeleteHsmResponse' | |
|
Instances
Create a value of DeleteHsmResponse
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:hsmId:DeleteHsm'
, deleteHsmResponse_hsmId
- The identifier (ID) of the HSM that was deleted.
$sel:httpStatus:DeleteHsmResponse'
, deleteHsmResponse_httpStatus
- The response's http status code.
Response Lenses
deleteHsmResponse_hsmId :: Lens' DeleteHsmResponse (Maybe Text) Source #
The identifier (ID) of the HSM that was deleted.
deleteHsmResponse_httpStatus :: Lens' DeleteHsmResponse Int Source #
The response's http status code.