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 Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair. This operation is supported in volume and tape gateway types.
Synopsis
- data DeleteChapCredentials = DeleteChapCredentials' {
- targetARN :: Text
- initiatorName :: Text
- newDeleteChapCredentials :: Text -> Text -> DeleteChapCredentials
- deleteChapCredentials_targetARN :: Lens' DeleteChapCredentials Text
- deleteChapCredentials_initiatorName :: Lens' DeleteChapCredentials Text
- data DeleteChapCredentialsResponse = DeleteChapCredentialsResponse' {
- targetARN :: Maybe Text
- initiatorName :: Maybe Text
- httpStatus :: Int
- newDeleteChapCredentialsResponse :: Int -> DeleteChapCredentialsResponse
- deleteChapCredentialsResponse_targetARN :: Lens' DeleteChapCredentialsResponse (Maybe Text)
- deleteChapCredentialsResponse_initiatorName :: Lens' DeleteChapCredentialsResponse (Maybe Text)
- deleteChapCredentialsResponse_httpStatus :: Lens' DeleteChapCredentialsResponse Int
Creating a Request
data DeleteChapCredentials Source #
A JSON object containing one or more of the following fields:
- DeleteChapCredentialsInput$InitiatorName
- DeleteChapCredentialsInput$TargetARN
See: newDeleteChapCredentials
smart constructor.
DeleteChapCredentials' | |
|
Instances
newDeleteChapCredentials Source #
:: Text | |
-> Text | |
-> DeleteChapCredentials |
Create a value of DeleteChapCredentials
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:targetARN:DeleteChapCredentials'
, deleteChapCredentials_targetARN
- The Amazon Resource Name (ARN) of the iSCSI volume target. Use the
DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN
for specified VolumeARN.
$sel:initiatorName:DeleteChapCredentials'
, deleteChapCredentials_initiatorName
- The iSCSI initiator that connects to the target.
Request Lenses
deleteChapCredentials_targetARN :: Lens' DeleteChapCredentials Text Source #
The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.
deleteChapCredentials_initiatorName :: Lens' DeleteChapCredentials Text Source #
The iSCSI initiator that connects to the target.
Destructuring the Response
data DeleteChapCredentialsResponse Source #
A JSON object containing the following fields:
See: newDeleteChapCredentialsResponse
smart constructor.
DeleteChapCredentialsResponse' | |
|
Instances
newDeleteChapCredentialsResponse Source #
Create a value of DeleteChapCredentialsResponse
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:targetARN:DeleteChapCredentials'
, deleteChapCredentialsResponse_targetARN
- The Amazon Resource Name (ARN) of the target.
$sel:initiatorName:DeleteChapCredentials'
, deleteChapCredentialsResponse_initiatorName
- The iSCSI initiator that connects to the target.
$sel:httpStatus:DeleteChapCredentialsResponse'
, deleteChapCredentialsResponse_httpStatus
- The response's http status code.
Response Lenses
deleteChapCredentialsResponse_targetARN :: Lens' DeleteChapCredentialsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the target.
deleteChapCredentialsResponse_initiatorName :: Lens' DeleteChapCredentialsResponse (Maybe Text) Source #
The iSCSI initiator that connects to the target.
deleteChapCredentialsResponse_httpStatus :: Lens' DeleteChapCredentialsResponse Int Source #
The response's http status code.