AWS SDK Version 3 for .NET
API Reference

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 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.IoT.AmazonIoTRequest
      Amazon.IoT.Model.TestAuthorizationRequest

Namespace: Amazon.IoT.Model
Assembly: AWSSDK.IoT.dll
Version: 3.x.y.z

Syntax

C#
public class TestAuthorizationRequest : AmazonIoTRequest
         IAmazonWebServiceRequest

The TestAuthorizationRequest type exposes the following members

Constructors

NameDescription
Public Method TestAuthorizationRequest()

Properties

NameTypeDescription
Public Property 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 authInfo object in the list.

Public Property ClientId System.String

Gets and sets the property ClientId.

The MQTT client ID.

Public Property CognitoIdentityPoolId System.String

Gets and sets the property CognitoIdentityPoolId.

The Cognito identity pool ID.

Public Property 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.

Public Property 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.

Public Property Principal System.String

Gets and sets the property Principal.

The principal.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms