aws iot test-authorization

Tests if a specified principal is authorized to perform an AWS IoT action on a specified resource. Use this to test and debug the authorization behavior of devices that connect to the AWS IoT device gateway

Options

NameDescription
--principal <string>The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id)
--cognito-identity-pool-id <string>The Cognito identity pool ID
--auth-infos <list>A list of authorization info objects. Simulating authorization will create a response for each authInfo object in the list
--client-id <string>The MQTT client ID
--policy-names-to-add <list>When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized
--policy-names-to-skip <list>When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command