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 |
Update public key information. Note that the only value you can change is the comment.
Synopsis
- data UpdatePublicKey = UpdatePublicKey' {
- ifMatch :: Maybe Text
- publicKeyConfig :: PublicKeyConfig
- id :: Text
- newUpdatePublicKey :: PublicKeyConfig -> Text -> UpdatePublicKey
- updatePublicKey_ifMatch :: Lens' UpdatePublicKey (Maybe Text)
- updatePublicKey_publicKeyConfig :: Lens' UpdatePublicKey PublicKeyConfig
- updatePublicKey_id :: Lens' UpdatePublicKey Text
- data UpdatePublicKeyResponse = UpdatePublicKeyResponse' {}
- newUpdatePublicKeyResponse :: Int -> UpdatePublicKeyResponse
- updatePublicKeyResponse_eTag :: Lens' UpdatePublicKeyResponse (Maybe Text)
- updatePublicKeyResponse_publicKey :: Lens' UpdatePublicKeyResponse (Maybe PublicKey)
- updatePublicKeyResponse_httpStatus :: Lens' UpdatePublicKeyResponse Int
Creating a Request
data UpdatePublicKey Source #
See: newUpdatePublicKey
smart constructor.
UpdatePublicKey' | |
|
Instances
:: PublicKeyConfig | |
-> Text | |
-> UpdatePublicKey |
Create a value of UpdatePublicKey
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:ifMatch:UpdatePublicKey'
, updatePublicKey_ifMatch
- The value of the ETag
header that you received when retrieving the
public key to update. For example: E2QWRUHAPOMQZL
.
$sel:publicKeyConfig:UpdatePublicKey'
, updatePublicKey_publicKeyConfig
- A public key configuration.
$sel:id:UpdatePublicKey'
, updatePublicKey_id
- The identifier of the public key that you are updating.
Request Lenses
updatePublicKey_ifMatch :: Lens' UpdatePublicKey (Maybe Text) Source #
The value of the ETag
header that you received when retrieving the
public key to update. For example: E2QWRUHAPOMQZL
.
updatePublicKey_publicKeyConfig :: Lens' UpdatePublicKey PublicKeyConfig Source #
A public key configuration.
updatePublicKey_id :: Lens' UpdatePublicKey Text Source #
The identifier of the public key that you are updating.
Destructuring the Response
data UpdatePublicKeyResponse Source #
See: newUpdatePublicKeyResponse
smart constructor.
Instances
newUpdatePublicKeyResponse Source #
Create a value of UpdatePublicKeyResponse
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:eTag:UpdatePublicKeyResponse'
, updatePublicKeyResponse_eTag
- The identifier of the current version of the public key.
$sel:publicKey:UpdatePublicKeyResponse'
, updatePublicKeyResponse_publicKey
- The public key.
$sel:httpStatus:UpdatePublicKeyResponse'
, updatePublicKeyResponse_httpStatus
- The response's http status code.
Response Lenses
updatePublicKeyResponse_eTag :: Lens' UpdatePublicKeyResponse (Maybe Text) Source #
The identifier of the current version of the public key.
updatePublicKeyResponse_publicKey :: Lens' UpdatePublicKeyResponse (Maybe PublicKey) Source #
The public key.
updatePublicKeyResponse_httpStatus :: Lens' UpdatePublicKeyResponse Int Source #
The response's http status code.