testAuthorization
inline suspend fun IotClient.testAuthorization(crossinline block: TestAuthorizationRequest.Builder.() -> Unit): TestAuthorizationResponse
Tests if a specified principal is authorized to perform an IoT action on a specified resource. Use this to test and debug the authorization behavior of devices that connect to the IoT device gateway.
Requires permission to access the TestAuthorization action.