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 UpdateConsumableResource operation. Updates a consumable resource.
Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z
public class UpdateConsumableResourceRequest : AmazonBatchRequest IAmazonWebServiceRequest
The UpdateConsumableResourceRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
UpdateConsumableResourceRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
ClientToken | System.String |
Gets and sets the property ClientToken.
If this parameter is specified and two update requests with identical payloads and
|
![]() |
ConsumableResource | System.String |
Gets and sets the property ConsumableResource. The name or ARN of the consumable resource to be updated. |
![]() |
Operation | System.String |
Gets and sets the property Operation. Indicates how the quantity of the consumable resource will be updated. Must be one of:
|
![]() |
Quantity | System.Int64 |
Gets and sets the property Quantity.
The change in the total quantity of the consumable resource. The |
Updates a consumable resource.
var client = new AmazonBatchClient(); var response = client.UpdateConsumableResource(new UpdateConsumableResourceRequest { ConsumableResource = "myConsumableResource", Operation = "ADD", Quantity = 12 }); string consumableResourceArn = response.ConsumableResourceArn; string consumableResourceName = response.ConsumableResourceName; long totalQuantity = response.TotalQuantity;
.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