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

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

Adds a grant to a key to specify who can use the key and under what conditions. Grants are alternate permission mechanisms to key policies.

For more information about grants, see Grants 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 the specified CMK is not enabled. /// /// The request was rejected because a specified ARN was not valid. /// /// The request was rejected because the specified grant token is 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 entity or resource could not be found. ///
public CreateGrant ( CreateGrantRequest request ) : CreateGrantResponse
request Amazon.KeyManagementService.Model.CreateGrantRequest Container for the necessary parameters to execute the CreateGrant service method.
Результат Amazon.KeyManagementService.Model.CreateGrantResponse
        public CreateGrantResponse CreateGrant(CreateGrantRequest request)
        {
            var marshaller = new CreateGrantRequestMarshaller();
            var unmarshaller = CreateGrantResponseUnmarshaller.Instance;

            return Invoke<CreateGrantRequest,CreateGrantResponse>(request, marshaller, unmarshaller);
        }
AmazonKeyManagementServiceClient