| 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 |
Amazonka.IoT.UpdateAuthorizer
Description
Updates an authorizer.
Requires permission to access the UpdateAuthorizer action.
Synopsis
- data UpdateAuthorizer = UpdateAuthorizer' {}
- newUpdateAuthorizer :: Text -> UpdateAuthorizer
- updateAuthorizer_status :: Lens' UpdateAuthorizer (Maybe AuthorizerStatus)
- updateAuthorizer_authorizerFunctionArn :: Lens' UpdateAuthorizer (Maybe Text)
- updateAuthorizer_tokenSigningPublicKeys :: Lens' UpdateAuthorizer (Maybe (HashMap Text Text))
- updateAuthorizer_tokenKeyName :: Lens' UpdateAuthorizer (Maybe Text)
- updateAuthorizer_authorizerName :: Lens' UpdateAuthorizer Text
- data UpdateAuthorizerResponse = UpdateAuthorizerResponse' {}
- newUpdateAuthorizerResponse :: Int -> UpdateAuthorizerResponse
- updateAuthorizerResponse_authorizerName :: Lens' UpdateAuthorizerResponse (Maybe Text)
- updateAuthorizerResponse_authorizerArn :: Lens' UpdateAuthorizerResponse (Maybe Text)
- updateAuthorizerResponse_httpStatus :: Lens' UpdateAuthorizerResponse Int
Creating a Request
data UpdateAuthorizer Source #
See: newUpdateAuthorizer smart constructor.
Constructors
| UpdateAuthorizer' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateAuthorizer |
Create a value of UpdateAuthorizer 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:status:UpdateAuthorizer', updateAuthorizer_status - The status of the update authorizer request.
$sel:authorizerFunctionArn:UpdateAuthorizer', updateAuthorizer_authorizerFunctionArn - The ARN of the authorizer's Lambda function.
$sel:tokenSigningPublicKeys:UpdateAuthorizer', updateAuthorizer_tokenSigningPublicKeys - The public keys used to verify the token signature.
$sel:tokenKeyName:UpdateAuthorizer', updateAuthorizer_tokenKeyName - The key used to extract the token from the HTTP headers.
$sel:authorizerName:UpdateAuthorizer', updateAuthorizer_authorizerName - The authorizer name.
Request Lenses
updateAuthorizer_status :: Lens' UpdateAuthorizer (Maybe AuthorizerStatus) Source #
The status of the update authorizer request.
updateAuthorizer_authorizerFunctionArn :: Lens' UpdateAuthorizer (Maybe Text) Source #
The ARN of the authorizer's Lambda function.
updateAuthorizer_tokenSigningPublicKeys :: Lens' UpdateAuthorizer (Maybe (HashMap Text Text)) Source #
The public keys used to verify the token signature.
updateAuthorizer_tokenKeyName :: Lens' UpdateAuthorizer (Maybe Text) Source #
The key used to extract the token from the HTTP headers.
updateAuthorizer_authorizerName :: Lens' UpdateAuthorizer Text Source #
The authorizer name.
Destructuring the Response
data UpdateAuthorizerResponse Source #
See: newUpdateAuthorizerResponse smart constructor.
Constructors
| UpdateAuthorizerResponse' | |
Fields
| |
Instances
newUpdateAuthorizerResponse Source #
Create a value of UpdateAuthorizerResponse 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:authorizerName:UpdateAuthorizer', updateAuthorizerResponse_authorizerName - The authorizer name.
$sel:authorizerArn:UpdateAuthorizerResponse', updateAuthorizerResponse_authorizerArn - The authorizer ARN.
$sel:httpStatus:UpdateAuthorizerResponse', updateAuthorizerResponse_httpStatus - The response's http status code.
Response Lenses
updateAuthorizerResponse_authorizerName :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #
The authorizer name.
updateAuthorizerResponse_authorizerArn :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #
The authorizer ARN.
updateAuthorizerResponse_httpStatus :: Lens' UpdateAuthorizerResponse Int Source #
The response's http status code.