Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates an authorizer.
- createAuthorizer :: Text -> Text -> Text -> CreateAuthorizer
- data CreateAuthorizer
- caStatus :: Lens' CreateAuthorizer (Maybe AuthorizerStatus)
- caAuthorizerName :: Lens' CreateAuthorizer Text
- caAuthorizerFunctionARN :: Lens' CreateAuthorizer Text
- caTokenKeyName :: Lens' CreateAuthorizer Text
- caTokenSigningPublicKeys :: Lens' CreateAuthorizer (HashMap Text Text)
- createAuthorizerResponse :: Int -> CreateAuthorizerResponse
- data CreateAuthorizerResponse
- carsAuthorizerName :: Lens' CreateAuthorizerResponse (Maybe Text)
- carsAuthorizerARN :: Lens' CreateAuthorizerResponse (Maybe Text)
- carsResponseStatus :: Lens' CreateAuthorizerResponse Int
Creating a Request
Creates a value of CreateAuthorizer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
caStatus
- The status of the create authorizer request.caAuthorizerName
- The authorizer name.caAuthorizerFunctionARN
- The ARN of the authorizer's Lambda function.caTokenKeyName
- The name of the token key used to extract the token from the HTTP headers.caTokenSigningPublicKeys
- The public keys used to verify the digital signature returned by your custom authentication service.
data CreateAuthorizer Source #
See: createAuthorizer
smart constructor.
Request Lenses
caStatus :: Lens' CreateAuthorizer (Maybe AuthorizerStatus) Source #
The status of the create authorizer request.
caAuthorizerName :: Lens' CreateAuthorizer Text Source #
The authorizer name.
caAuthorizerFunctionARN :: Lens' CreateAuthorizer Text Source #
The ARN of the authorizer's Lambda function.
caTokenKeyName :: Lens' CreateAuthorizer Text Source #
The name of the token key used to extract the token from the HTTP headers.
caTokenSigningPublicKeys :: Lens' CreateAuthorizer (HashMap Text Text) Source #
The public keys used to verify the digital signature returned by your custom authentication service.
Destructuring the Response
createAuthorizerResponse Source #
Creates a value of CreateAuthorizerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
carsAuthorizerName
- The authorizer's name.carsAuthorizerARN
- The authorizer ARN.carsResponseStatus
- -- | The response status code.
data CreateAuthorizerResponse Source #
See: createAuthorizerResponse
smart constructor.
Response Lenses
carsAuthorizerName :: Lens' CreateAuthorizerResponse (Maybe Text) Source #
The authorizer's name.
carsAuthorizerARN :: Lens' CreateAuthorizerResponse (Maybe Text) Source #
The authorizer ARN.
carsResponseStatus :: Lens' CreateAuthorizerResponse Int Source #
- - | The response status code.