Amazon.IoT.AmazonIoTClient.GetPolicyVersionAsync C# (CSharp) Метод

GetPolicyVersionAsync() публичный Метод

Gets information about the specified policy version.
/// An unexpected error has occurred. /// /// The request is not valid. /// /// The specified resource does not exist. /// /// The service is temporarily unavailable. /// /// The rate exceeds the limit. /// /// You are not authorized to perform this operation. ///
public GetPolicyVersionAsync ( string policyName, string policyVersionId, System cancellationToken = default(CancellationToken) ) : Task
policyName string The name of the policy.
policyVersionId string The policy version ID.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<GetPolicyVersionResponse> GetPolicyVersionAsync(string policyName, string policyVersionId, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new GetPolicyVersionRequest();
            request.PolicyName = policyName;
            request.PolicyVersionId = policyVersionId;
            return GetPolicyVersionAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::GetPolicyVersionAsync ( GetPolicyVersionRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient