| 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.IoT.UpdateAuthorizer
Description
Updates an authorizer.
Requires permission to access the UpdateAuthorizer action.
Synopsis
- data UpdateAuthorizer = UpdateAuthorizer' {}
- newUpdateAuthorizer :: Text -> UpdateAuthorizer
- updateAuthorizer_authorizerFunctionArn :: Lens' UpdateAuthorizer (Maybe Text)
- updateAuthorizer_enableCachingForHttp :: Lens' UpdateAuthorizer (Maybe Bool)
- updateAuthorizer_status :: Lens' UpdateAuthorizer (Maybe AuthorizerStatus)
- updateAuthorizer_tokenKeyName :: Lens' UpdateAuthorizer (Maybe Text)
- updateAuthorizer_tokenSigningPublicKeys :: Lens' UpdateAuthorizer (Maybe (HashMap Text Text))
- updateAuthorizer_authorizerName :: Lens' UpdateAuthorizer Text
- data UpdateAuthorizerResponse = UpdateAuthorizerResponse' {}
- newUpdateAuthorizerResponse :: Int -> UpdateAuthorizerResponse
- updateAuthorizerResponse_authorizerArn :: Lens' UpdateAuthorizerResponse (Maybe Text)
- updateAuthorizerResponse_authorizerName :: 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:
UpdateAuthorizer, updateAuthorizer_authorizerFunctionArn - The ARN of the authorizer's Lambda function.
UpdateAuthorizer, updateAuthorizer_enableCachingForHttp - When true, the result from the authorizer’s Lambda function is cached
for the time specified in refreshAfterInSeconds. The cached result is
used while the device reuses the same HTTP connection.
UpdateAuthorizer, updateAuthorizer_status - The status of the update authorizer request.
UpdateAuthorizer, updateAuthorizer_tokenKeyName - The key used to extract the token from the HTTP headers.
UpdateAuthorizer, updateAuthorizer_tokenSigningPublicKeys - The public keys used to verify the token signature.
UpdateAuthorizer, updateAuthorizer_authorizerName - The authorizer name.
Request Lenses
updateAuthorizer_authorizerFunctionArn :: Lens' UpdateAuthorizer (Maybe Text) Source #
The ARN of the authorizer's Lambda function.
updateAuthorizer_enableCachingForHttp :: Lens' UpdateAuthorizer (Maybe Bool) Source #
When true, the result from the authorizer’s Lambda function is cached
for the time specified in refreshAfterInSeconds. The cached result is
used while the device reuses the same HTTP connection.
updateAuthorizer_status :: Lens' UpdateAuthorizer (Maybe AuthorizerStatus) Source #
The status of the update authorizer request.
updateAuthorizer_tokenKeyName :: Lens' UpdateAuthorizer (Maybe Text) Source #
The key used to extract the token from the HTTP headers.
updateAuthorizer_tokenSigningPublicKeys :: Lens' UpdateAuthorizer (Maybe (HashMap Text Text)) Source #
The public keys used to verify the token signature.
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:
UpdateAuthorizerResponse, updateAuthorizerResponse_authorizerArn - The authorizer ARN.
UpdateAuthorizer, updateAuthorizerResponse_authorizerName - The authorizer name.
$sel:httpStatus:UpdateAuthorizerResponse', updateAuthorizerResponse_httpStatus - The response's http status code.
Response Lenses
updateAuthorizerResponse_authorizerArn :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #
The authorizer ARN.
updateAuthorizerResponse_authorizerName :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #
The authorizer name.
updateAuthorizerResponse_httpStatus :: Lens' UpdateAuthorizerResponse Int Source #
The response's http status code.