| 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.CreateAuthorizer
Description
Creates an authorizer.
Requires permission to access the CreateAuthorizer action.
Synopsis
- data CreateAuthorizer = CreateAuthorizer' {}
- newCreateAuthorizer :: Text -> Text -> CreateAuthorizer
- createAuthorizer_status :: Lens' CreateAuthorizer (Maybe AuthorizerStatus)
- createAuthorizer_signingDisabled :: Lens' CreateAuthorizer (Maybe Bool)
- createAuthorizer_tokenSigningPublicKeys :: Lens' CreateAuthorizer (Maybe (HashMap Text Text))
- createAuthorizer_tokenKeyName :: Lens' CreateAuthorizer (Maybe Text)
- createAuthorizer_tags :: Lens' CreateAuthorizer (Maybe [Tag])
- createAuthorizer_authorizerName :: Lens' CreateAuthorizer Text
- createAuthorizer_authorizerFunctionArn :: Lens' CreateAuthorizer Text
- data CreateAuthorizerResponse = CreateAuthorizerResponse' {}
- newCreateAuthorizerResponse :: Int -> CreateAuthorizerResponse
- createAuthorizerResponse_authorizerName :: Lens' CreateAuthorizerResponse (Maybe Text)
- createAuthorizerResponse_authorizerArn :: Lens' CreateAuthorizerResponse (Maybe Text)
- createAuthorizerResponse_httpStatus :: Lens' CreateAuthorizerResponse Int
Creating a Request
data CreateAuthorizer Source #
See: newCreateAuthorizer smart constructor.
Constructors
| CreateAuthorizer' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateAuthorizer |
Create a value of CreateAuthorizer 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:CreateAuthorizer', createAuthorizer_status - The status of the create authorizer request.
$sel:signingDisabled:CreateAuthorizer', createAuthorizer_signingDisabled - Specifies whether IoT validates the token signature in an authorization
request.
$sel:tokenSigningPublicKeys:CreateAuthorizer', createAuthorizer_tokenSigningPublicKeys - The public keys used to verify the digital signature returned by your
custom authentication service.
$sel:tokenKeyName:CreateAuthorizer', createAuthorizer_tokenKeyName - The name of the token key used to extract the token from the HTTP
headers.
$sel:tags:CreateAuthorizer', createAuthorizer_tags - Metadata which can be used to manage the custom authorizer.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
$sel:authorizerName:CreateAuthorizer', createAuthorizer_authorizerName - The authorizer name.
$sel:authorizerFunctionArn:CreateAuthorizer', createAuthorizer_authorizerFunctionArn - The ARN of the authorizer's Lambda function.
Request Lenses
createAuthorizer_status :: Lens' CreateAuthorizer (Maybe AuthorizerStatus) Source #
The status of the create authorizer request.
createAuthorizer_signingDisabled :: Lens' CreateAuthorizer (Maybe Bool) Source #
Specifies whether IoT validates the token signature in an authorization request.
createAuthorizer_tokenSigningPublicKeys :: Lens' CreateAuthorizer (Maybe (HashMap Text Text)) Source #
The public keys used to verify the digital signature returned by your custom authentication service.
createAuthorizer_tokenKeyName :: Lens' CreateAuthorizer (Maybe Text) Source #
The name of the token key used to extract the token from the HTTP headers.
createAuthorizer_tags :: Lens' CreateAuthorizer (Maybe [Tag]) Source #
Metadata which can be used to manage the custom authorizer.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
createAuthorizer_authorizerName :: Lens' CreateAuthorizer Text Source #
The authorizer name.
createAuthorizer_authorizerFunctionArn :: Lens' CreateAuthorizer Text Source #
The ARN of the authorizer's Lambda function.
Destructuring the Response
data CreateAuthorizerResponse Source #
See: newCreateAuthorizerResponse smart constructor.
Constructors
| CreateAuthorizerResponse' | |
Fields
| |
Instances
newCreateAuthorizerResponse Source #
Create a value of CreateAuthorizerResponse 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:CreateAuthorizer', createAuthorizerResponse_authorizerName - The authorizer's name.
$sel:authorizerArn:CreateAuthorizerResponse', createAuthorizerResponse_authorizerArn - The authorizer ARN.
$sel:httpStatus:CreateAuthorizerResponse', createAuthorizerResponse_httpStatus - The response's http status code.
Response Lenses
createAuthorizerResponse_authorizerName :: Lens' CreateAuthorizerResponse (Maybe Text) Source #
The authorizer's name.
createAuthorizerResponse_authorizerArn :: Lens' CreateAuthorizerResponse (Maybe Text) Source #
The authorizer ARN.
createAuthorizerResponse_httpStatus :: Lens' CreateAuthorizerResponse Int Source #
The response's http status code.