Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.GetPolicyAsync C# (CSharp) Method

GetPolicyAsync() public method

Initiates the asynchronous execution of the GetPolicy operation.
public GetPolicyAsync ( GetPolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
request GetPolicyRequest Container for the necessary parameters to execute the GetPolicy operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<GetPolicyResponse> GetPolicyAsync(GetPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetPolicyRequestMarshaller();
            var unmarshaller = GetPolicyResponseUnmarshaller.Instance;

            return InvokeAsync<GetPolicyRequest,GetPolicyResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonIdentityManagementServiceClient::GetPolicyAsync ( GetPolicyRequest request, GetPolicyResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonIdentityManagementServiceClient