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 |
Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the IoT device gateway.
Requires permission to access the TestInvokeAuthorizer action.
Synopsis
- data TestInvokeAuthorizer = TestInvokeAuthorizer' {}
- newTestInvokeAuthorizer :: Text -> TestInvokeAuthorizer
- testInvokeAuthorizer_token :: Lens' TestInvokeAuthorizer (Maybe Text)
- testInvokeAuthorizer_tlsContext :: Lens' TestInvokeAuthorizer (Maybe TlsContext)
- testInvokeAuthorizer_tokenSignature :: Lens' TestInvokeAuthorizer (Maybe Text)
- testInvokeAuthorizer_httpContext :: Lens' TestInvokeAuthorizer (Maybe HttpContext)
- testInvokeAuthorizer_mqttContext :: Lens' TestInvokeAuthorizer (Maybe MqttContext)
- testInvokeAuthorizer_authorizerName :: Lens' TestInvokeAuthorizer Text
- data TestInvokeAuthorizerResponse = TestInvokeAuthorizerResponse' {}
- newTestInvokeAuthorizerResponse :: Int -> TestInvokeAuthorizerResponse
- testInvokeAuthorizerResponse_policyDocuments :: Lens' TestInvokeAuthorizerResponse (Maybe [Text])
- testInvokeAuthorizerResponse_principalId :: Lens' TestInvokeAuthorizerResponse (Maybe Text)
- testInvokeAuthorizerResponse_disconnectAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int)
- testInvokeAuthorizerResponse_isAuthenticated :: Lens' TestInvokeAuthorizerResponse (Maybe Bool)
- testInvokeAuthorizerResponse_refreshAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int)
- testInvokeAuthorizerResponse_httpStatus :: Lens' TestInvokeAuthorizerResponse Int
Creating a Request
data TestInvokeAuthorizer Source #
See: newTestInvokeAuthorizer
smart constructor.
TestInvokeAuthorizer' | |
|
Instances
newTestInvokeAuthorizer Source #
Create a value of TestInvokeAuthorizer
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:token:TestInvokeAuthorizer'
, testInvokeAuthorizer_token
- The token returned by your custom authentication service.
$sel:tlsContext:TestInvokeAuthorizer'
, testInvokeAuthorizer_tlsContext
- Specifies a test TLS authorization request.
$sel:tokenSignature:TestInvokeAuthorizer'
, testInvokeAuthorizer_tokenSignature
- The signature made with the token and your custom authentication
service's private key. This value must be Base-64-encoded.
$sel:httpContext:TestInvokeAuthorizer'
, testInvokeAuthorizer_httpContext
- Specifies a test HTTP authorization request.
$sel:mqttContext:TestInvokeAuthorizer'
, testInvokeAuthorizer_mqttContext
- Specifies a test MQTT authorization request.
$sel:authorizerName:TestInvokeAuthorizer'
, testInvokeAuthorizer_authorizerName
- The custom authorizer name.
Request Lenses
testInvokeAuthorizer_token :: Lens' TestInvokeAuthorizer (Maybe Text) Source #
The token returned by your custom authentication service.
testInvokeAuthorizer_tlsContext :: Lens' TestInvokeAuthorizer (Maybe TlsContext) Source #
Specifies a test TLS authorization request.
testInvokeAuthorizer_tokenSignature :: Lens' TestInvokeAuthorizer (Maybe Text) Source #
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
testInvokeAuthorizer_httpContext :: Lens' TestInvokeAuthorizer (Maybe HttpContext) Source #
Specifies a test HTTP authorization request.
testInvokeAuthorizer_mqttContext :: Lens' TestInvokeAuthorizer (Maybe MqttContext) Source #
Specifies a test MQTT authorization request.
testInvokeAuthorizer_authorizerName :: Lens' TestInvokeAuthorizer Text Source #
The custom authorizer name.
Destructuring the Response
data TestInvokeAuthorizerResponse Source #
See: newTestInvokeAuthorizerResponse
smart constructor.
TestInvokeAuthorizerResponse' | |
|
Instances
newTestInvokeAuthorizerResponse Source #
Create a value of TestInvokeAuthorizerResponse
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:policyDocuments:TestInvokeAuthorizerResponse'
, testInvokeAuthorizerResponse_policyDocuments
- IAM policy documents.
$sel:principalId:TestInvokeAuthorizerResponse'
, testInvokeAuthorizerResponse_principalId
- The principal ID.
$sel:disconnectAfterInSeconds:TestInvokeAuthorizerResponse'
, testInvokeAuthorizerResponse_disconnectAfterInSeconds
- The number of seconds after which the connection is terminated.
$sel:isAuthenticated:TestInvokeAuthorizerResponse'
, testInvokeAuthorizerResponse_isAuthenticated
- True if the token is authenticated, otherwise false.
$sel:refreshAfterInSeconds:TestInvokeAuthorizerResponse'
, testInvokeAuthorizerResponse_refreshAfterInSeconds
- The number of seconds after which the temporary credentials are
refreshed.
$sel:httpStatus:TestInvokeAuthorizerResponse'
, testInvokeAuthorizerResponse_httpStatus
- The response's http status code.
Response Lenses
testInvokeAuthorizerResponse_policyDocuments :: Lens' TestInvokeAuthorizerResponse (Maybe [Text]) Source #
IAM policy documents.
testInvokeAuthorizerResponse_principalId :: Lens' TestInvokeAuthorizerResponse (Maybe Text) Source #
The principal ID.
testInvokeAuthorizerResponse_disconnectAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int) Source #
The number of seconds after which the connection is terminated.
testInvokeAuthorizerResponse_isAuthenticated :: Lens' TestInvokeAuthorizerResponse (Maybe Bool) Source #
True if the token is authenticated, otherwise false.
testInvokeAuthorizerResponse_refreshAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int) Source #
The number of seconds after which the temporary credentials are refreshed.
testInvokeAuthorizerResponse_httpStatus :: Lens' TestInvokeAuthorizerResponse Int Source #
The response's http status code.