Amazon.KeyManagementService.AmazonKeyManagementServiceClient.GetKeyPolicy C# (CSharp) Method

GetKeyPolicy() public method

Retrieves a policy attached to the specified key.
/// The system timed out while trying to fulfill the request. The request can be retried. /// /// The request was rejected because a specified ARN was not valid. /// /// The request was rejected because an internal exception occurred. The request can be /// retried. /// /// The request was rejected because the state of the specified resource is not valid /// for this request. /// /// /// /// For more information about how key state affects the use of a CMK, see How /// Key State Affects Use of a Customer Master Key in the AWS Key Management Service /// Developer Guide. /// /// /// The request was rejected because the specified entity or resource could not be found. ///
public GetKeyPolicy ( GetKeyPolicyRequest request ) : GetKeyPolicyResponse
request GetKeyPolicyRequest Container for the necessary parameters to execute the GetKeyPolicy service method.
return GetKeyPolicyResponse
        public GetKeyPolicyResponse GetKeyPolicy(GetKeyPolicyRequest request)
        {
            var marshaller = new GetKeyPolicyRequestMarshaller();
            var unmarshaller = GetKeyPolicyResponseUnmarshaller.Instance;

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

Same methods

AmazonKeyManagementServiceClient::GetKeyPolicy ( string keyId, string policyName ) : GetKeyPolicyResponse
AmazonKeyManagementServiceClient