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 |
Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair. This operation is supported in the volume and tape gateway types.
Synopsis
- data DescribeChapCredentials = DescribeChapCredentials' {}
- newDescribeChapCredentials :: Text -> DescribeChapCredentials
- describeChapCredentials_targetARN :: Lens' DescribeChapCredentials Text
- data DescribeChapCredentialsResponse = DescribeChapCredentialsResponse' {
- chapCredentials :: Maybe [ChapInfo]
- httpStatus :: Int
- newDescribeChapCredentialsResponse :: Int -> DescribeChapCredentialsResponse
- describeChapCredentialsResponse_chapCredentials :: Lens' DescribeChapCredentialsResponse (Maybe [ChapInfo])
- describeChapCredentialsResponse_httpStatus :: Lens' DescribeChapCredentialsResponse Int
Creating a Request
data DescribeChapCredentials Source #
A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume target.
See: newDescribeChapCredentials
smart constructor.
Instances
newDescribeChapCredentials Source #
Create a value of DescribeChapCredentials
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:DescribeChapCredentials'
, describeChapCredentials_targetARN
- The Amazon Resource Name (ARN) of the iSCSI volume target. Use the
DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN
for specified VolumeARN.
Request Lenses
describeChapCredentials_targetARN :: Lens' DescribeChapCredentials 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.
Destructuring the Response
data DescribeChapCredentialsResponse Source #
A JSON object containing the following fields:
See: newDescribeChapCredentialsResponse
smart constructor.
DescribeChapCredentialsResponse' | |
|
Instances
Eq DescribeChapCredentialsResponse Source # | |
Show DescribeChapCredentialsResponse Source # | |
Generic DescribeChapCredentialsResponse Source # | |
NFData DescribeChapCredentialsResponse Source # | |
Defined in Amazonka.StorageGateway.DescribeChapCredentials rnf :: DescribeChapCredentialsResponse -> () # | |
type Rep DescribeChapCredentialsResponse Source # | |
Defined in Amazonka.StorageGateway.DescribeChapCredentials type Rep DescribeChapCredentialsResponse = D1 ('MetaData "DescribeChapCredentialsResponse" "Amazonka.StorageGateway.DescribeChapCredentials" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "DescribeChapCredentialsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "chapCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ChapInfo])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeChapCredentialsResponse Source #
Create a value of DescribeChapCredentialsResponse
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:chapCredentials:DescribeChapCredentialsResponse'
, describeChapCredentialsResponse_chapCredentials
- An array of ChapInfo objects that represent CHAP credentials. Each
object in the array contains CHAP credential information for one
target-initiator pair. If no CHAP credentials are set, an empty array is
returned. CHAP credential information is provided in a JSON object with
the following fields:
- InitiatorName: The iSCSI initiator that connects to the target.
- SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
- SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
- TargetARN: The Amazon Resource Name (ARN) of the storage volume.
$sel:httpStatus:DescribeChapCredentialsResponse'
, describeChapCredentialsResponse_httpStatus
- The response's http status code.
Response Lenses
describeChapCredentialsResponse_chapCredentials :: Lens' DescribeChapCredentialsResponse (Maybe [ChapInfo]) Source #
An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:
- InitiatorName: The iSCSI initiator that connects to the target.
- SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
- SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
- TargetARN: The Amazon Resource Name (ARN) of the storage volume.
describeChapCredentialsResponse_httpStatus :: Lens' DescribeChapCredentialsResponse Int Source #
The response's http status code.