| 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.TestInvokeAuthorizer
Description
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_httpContext :: Lens' TestInvokeAuthorizer (Maybe HttpContext)
- testInvokeAuthorizer_mqttContext :: Lens' TestInvokeAuthorizer (Maybe MqttContext)
- testInvokeAuthorizer_tlsContext :: Lens' TestInvokeAuthorizer (Maybe TlsContext)
- testInvokeAuthorizer_token :: Lens' TestInvokeAuthorizer (Maybe Text)
- testInvokeAuthorizer_tokenSignature :: Lens' TestInvokeAuthorizer (Maybe Text)
- testInvokeAuthorizer_authorizerName :: Lens' TestInvokeAuthorizer Text
- data TestInvokeAuthorizerResponse = TestInvokeAuthorizerResponse' {}
- newTestInvokeAuthorizerResponse :: Int -> TestInvokeAuthorizerResponse
- testInvokeAuthorizerResponse_disconnectAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int)
- testInvokeAuthorizerResponse_isAuthenticated :: Lens' TestInvokeAuthorizerResponse (Maybe Bool)
- testInvokeAuthorizerResponse_policyDocuments :: Lens' TestInvokeAuthorizerResponse (Maybe [Text])
- testInvokeAuthorizerResponse_principalId :: Lens' TestInvokeAuthorizerResponse (Maybe Text)
- testInvokeAuthorizerResponse_refreshAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int)
- testInvokeAuthorizerResponse_httpStatus :: Lens' TestInvokeAuthorizerResponse Int
Creating a Request
data TestInvokeAuthorizer Source #
See: newTestInvokeAuthorizer smart constructor.
Constructors
| TestInvokeAuthorizer' | |
Fields
| |
Instances
newTestInvokeAuthorizer Source #
Arguments
| :: Text | |
| -> TestInvokeAuthorizer |
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:httpContext:TestInvokeAuthorizer', testInvokeAuthorizer_httpContext - Specifies a test HTTP authorization request.
$sel:mqttContext:TestInvokeAuthorizer', testInvokeAuthorizer_mqttContext - Specifies a test MQTT authorization request.
$sel:tlsContext:TestInvokeAuthorizer', testInvokeAuthorizer_tlsContext - Specifies a test TLS authorization request.
TestInvokeAuthorizer, testInvokeAuthorizer_token - The token returned by your custom authentication service.
$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.
TestInvokeAuthorizer, testInvokeAuthorizer_authorizerName - The custom authorizer name.
Request Lenses
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_tlsContext :: Lens' TestInvokeAuthorizer (Maybe TlsContext) Source #
Specifies a test TLS authorization request.
testInvokeAuthorizer_token :: Lens' TestInvokeAuthorizer (Maybe Text) Source #
The token returned by your custom authentication service.
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_authorizerName :: Lens' TestInvokeAuthorizer Text Source #
The custom authorizer name.
Destructuring the Response
data TestInvokeAuthorizerResponse Source #
See: newTestInvokeAuthorizerResponse smart constructor.
Constructors
| TestInvokeAuthorizerResponse' | |
Fields
| |
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: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:policyDocuments:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_policyDocuments - IAM policy documents.
$sel:principalId:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_principalId - The principal ID.
$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_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_policyDocuments :: Lens' TestInvokeAuthorizerResponse (Maybe [Text]) Source #
IAM policy documents.
testInvokeAuthorizerResponse_principalId :: Lens' TestInvokeAuthorizerResponse (Maybe Text) Source #
The principal ID.
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.