| 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 |
Amazonka.StorageGateway.DeleteChapCredentials
Description
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' {
- initiatorName :: Maybe Text
- targetARN :: Maybe Text
- httpStatus :: Int
- newDeleteChapCredentialsResponse :: Int -> DeleteChapCredentialsResponse
- deleteChapCredentialsResponse_initiatorName :: Lens' DeleteChapCredentialsResponse (Maybe Text)
- deleteChapCredentialsResponse_targetARN :: 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.
Constructors
| DeleteChapCredentials' | |
Fields
| |
Instances
newDeleteChapCredentials Source #
Arguments
| :: 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:
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.
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.
Constructors
| DeleteChapCredentialsResponse' | |
Fields
| |
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:
DeleteChapCredentials, deleteChapCredentialsResponse_initiatorName - The iSCSI initiator that connects to the target.
DeleteChapCredentials, deleteChapCredentialsResponse_targetARN - The Amazon Resource Name (ARN) of the target.
$sel:httpStatus:DeleteChapCredentialsResponse', deleteChapCredentialsResponse_httpStatus - The response's http status code.
Response Lenses
deleteChapCredentialsResponse_initiatorName :: Lens' DeleteChapCredentialsResponse (Maybe Text) Source #
The iSCSI initiator that connects to the target.
deleteChapCredentialsResponse_targetARN :: Lens' DeleteChapCredentialsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the target.
deleteChapCredentialsResponse_httpStatus :: Lens' DeleteChapCredentialsResponse Int Source #
The response's http status code.