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

ListGrants() public method

List the grants for a 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 the marker that specifies where pagination should /// next begin 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 the specified entity or resource could not be found. ///
public ListGrants ( ListGrantsRequest request ) : ListGrantsResponse
request ListGrantsRequest Container for the necessary parameters to execute the ListGrants service method.
return ListGrantsResponse
        public ListGrantsResponse ListGrants(ListGrantsRequest request)
        {
            var marshaller = new ListGrantsRequestMarshaller();
            var unmarshaller = ListGrantsResponseUnmarshaller.Instance;

            return Invoke<ListGrantsRequest,ListGrantsResponse>(request, marshaller, unmarshaller);
        }
AmazonKeyManagementServiceClient