AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the ListConsumableResources operation. Returns a list of Batch consumable resources.
Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z
public class ListConsumableResourcesRequest : AmazonBatchRequest IAmazonWebServiceRequest
The ListConsumableResourcesRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
ListConsumableResourcesRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
Filters | System.Collections.Generic.List<Amazon.Batch.Model.KeyValuesPair> |
Gets and sets the property Filters. The filters to apply to the consumable resource list query. If used, only those consumable resources that match the filter are listed. Filter names and values can be:
|
![]() |
MaxResults | System.Int32 |
Gets and sets the property MaxResults.
The maximum number of results returned by |
![]() |
NextToken | System.String |
Gets and sets the property NextToken.
The Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes. |
Returns a list of the consumable resources for your account.
var client = new AmazonBatchClient(); var response = client.ListConsumableResources(new ListConsumableResourcesRequest { Filters = new List<KeyValuesPair> { new KeyValuesPair { Name = "CONSUMABLE_RESOURCE_NAME", Values = new List<string> { "my*" } } }, MaxResults = 123 }); List<ConsumableResourceSummary> consumableResources = response.ConsumableResources;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5