test_invoke_authorizer
async
¶
test_invoke_authorizer(
authorizer_name: AuthorizerName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
token: Optional[Token] = None,
token_signature: Optional[TokenSignature] = None,
http_context: Optional[HttpContext] = None,
mqtt_context: Optional[MqttContext] = None,
tls_context: Optional[TlsContext] = None,
) -> TestInvokeAuthorizerResponse
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.
Parameters:
-
authorizer_name(AuthorizerName) –The custom authorizer name.
-
token(Optional[Token], default:None) –The token returned by your custom authentication service.
-
token_signature(Optional[TokenSignature], default:None) –The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
-
http_context(Optional[HttpContext], default:None) –Specifies a test HTTP authorization request.
-
mqtt_context(Optional[MqttContext], default:None) –Specifies a test MQTT authorization request.
-
tls_context(Optional[TlsContext], default:None) –Specifies a test TLS authorization request.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
InvalidResponseException–The response is invalid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 | |