Amazon.IoT.AmazonIoTClient.CreatePolicyAsync C# (CSharp) Méthode

CreatePolicyAsync() public méthode

Initiates the asynchronous execution of the CreatePolicy operation.
public CreatePolicyAsync ( CreatePolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.IoT.Model.CreatePolicyRequest Container for the necessary parameters to execute the CreatePolicy operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Résultat Task
        public Task<CreatePolicyResponse> CreatePolicyAsync(CreatePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreatePolicyRequestMarshaller();
            var unmarshaller = CreatePolicyResponseUnmarshaller.Instance;

            return InvokeAsync<CreatePolicyRequest,CreatePolicyResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonIoTClient::CreatePolicyAsync ( string policyName, string policyDocument, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient