Amazon.KeyManagementService.AmazonKeyManagementServiceClient.PutKeyPolicy C# (CSharp) Метод

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

Attaches a key policy to the specified customer master key (CMK).

For more information about key policies, see Key Policies in the AWS Key Management Service Developer Guide.

/// 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 a limit was exceeded. For more information, see Limits /// in the AWS Key Management Service Developer Guide. /// /// The request was rejected because the specified policy is not syntactically or semantically /// correct. /// /// The request was rejected because the specified entity or resource could not be found. /// /// The request was rejected because a specified parameter is not supported or a specified /// resource is not valid for this operation. ///
public PutKeyPolicy ( PutKeyPolicyRequest request ) : PutKeyPolicyResponse
request PutKeyPolicyRequest Container for the necessary parameters to execute the PutKeyPolicy service method.
Результат PutKeyPolicyResponse
        public PutKeyPolicyResponse PutKeyPolicy(PutKeyPolicyRequest request)
        {
            var marshaller = new PutKeyPolicyRequestMarshaller();
            var unmarshaller = PutKeyPolicyResponseUnmarshaller.Instance;

            return Invoke<PutKeyPolicyRequest,PutKeyPolicyResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonKeyManagementServiceClient::PutKeyPolicy ( string keyId, string policy, string policyName ) : PutKeyPolicyResponse
AmazonKeyManagementServiceClient