AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the TestAuthorization operation. 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.
Namespace: Amazon.IoT.Model
Assembly: AWSSDK.IoT.dll
Version: 3.x.y.z
public class TestAuthorizationRequest : AmazonIoTRequest IAmazonWebServiceRequest
The TestAuthorizationRequest type exposes the following members
Name | Description | |
---|---|---|
TestAuthorizationRequest() |
Name | Type | Description | |
---|---|---|---|
AuthInfos | System.Collections.Generic.List<Amazon.IoT.Model.AuthInfo> |
Gets and sets the property AuthInfos.
A list of authorization info objects. Simulating authorization will create a response
for each |
|
ClientId | System.String |
Gets and sets the property ClientId. The MQTT client ID. |
|
CognitoIdentityPoolId | System.String |
Gets and sets the property CognitoIdentityPoolId. The Cognito identity pool ID. |
|
PolicyNamesToAdd | System.Collections.Generic.List<System.String> |
Gets and sets the property PolicyNamesToAdd. When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized. |
|
PolicyNamesToSkip | System.Collections.Generic.List<System.String> |
Gets and sets the property PolicyNamesToSkip. When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized. |
|
Principal | System.String |
Gets and sets the property Principal. 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). |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5