test_invoke_authorizer
¶
test_invoke_authorizer(
authorizer_name: AuthorizerName,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 | |