Amazon.KeyManagementService.AmazonKeyManagementServiceClient.GetKeyPolicyAsync C# (CSharp) Méthode

GetKeyPolicyAsync() public méthode

Initiates the asynchronous execution of the GetKeyPolicy operation.
public GetKeyPolicyAsync ( GetKeyPolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
request GetKeyPolicyRequest Container for the necessary parameters to execute the GetKeyPolicy 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<GetKeyPolicyResponse> GetKeyPolicyAsync(GetKeyPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetKeyPolicyRequestMarshaller();
            var unmarshaller = GetKeyPolicyResponseUnmarshaller.Instance;

            return InvokeAsync<GetKeyPolicyRequest,GetKeyPolicyResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonKeyManagementServiceClient::GetKeyPolicyAsync ( string keyId, string policyName, System cancellationToken = default(CancellationToken) ) : Task
AmazonKeyManagementServiceClient