amazonka-storagegateway-1.2.0: Amazon Storage Gateway SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StorageGateway.UpdateChapCredentials

Contents

Description

This operation updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target. By default, a gateway does not have CHAP enabled; however, for added security, you might use it.

When you update CHAP credentials, all existing connections on the target are closed and initiators must reconnect with the new credentials.

See: AWS API Reference for UpdateChapCredentials.

Synopsis

Creating a Request

updateChapCredentials Source

Creates a value of UpdateChapCredentials with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateChapCredentials Source

A JSON object containing one or more of the following fields:

  • UpdateChapCredentialsInput$InitiatorName
  • UpdateChapCredentialsInput$SecretToAuthenticateInitiator
  • UpdateChapCredentialsInput$SecretToAuthenticateTarget
  • UpdateChapCredentialsInput$TargetARN

See: updateChapCredentials smart constructor.

Request Lenses

uccSecretToAuthenticateTarget :: Lens' UpdateChapCredentials (Maybe Text) Source

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

Byte constraints: Minimum bytes of 12. Maximum bytes of 16.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

uccTargetARN :: Lens' UpdateChapCredentials Text Source

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return the TargetARN for specified VolumeARN.

uccSecretToAuthenticateInitiator :: Lens' UpdateChapCredentials Text Source

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

uccInitiatorName :: Lens' UpdateChapCredentials Text Source

The iSCSI initiator that connects to the target.

Destructuring the Response

updateChapCredentialsResponse Source

Creates a value of UpdateChapCredentialsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

uccrsTargetARN :: Lens' UpdateChapCredentialsResponse (Maybe Text) Source

The Amazon Resource Name (ARN) of the target. This is the same target specified in the request.

uccrsInitiatorName :: Lens' UpdateChapCredentialsResponse (Maybe Text) Source

The iSCSI initiator that connects to the target. This is the same initiator name specified in the request.