AWS SDK Version 3 for .NET
API Reference

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 DescribeConsumableResource operation. Returns a description of the specified consumable resource.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Batch.AmazonBatchRequest
      Amazon.Batch.Model.DescribeConsumableResourceRequest

Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z

Syntax

C#
public class DescribeConsumableResourceRequest : AmazonBatchRequest
         IAmazonWebServiceRequest

The DescribeConsumableResourceRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ConsumableResource System.String

Gets and sets the property ConsumableResource.

The name or ARN of the consumable resource whose description will be returned.

Examples

Returns a description of the specified consumable resource.

To get a description of a consumable resource


var client = new AmazonBatchClient();
var response = client.DescribeConsumableResource(new DescribeConsumableResourceRequest 
{
    ConsumableResource = "myConsumableResource"
});

long availableQuantity = response.AvailableQuantity;
string consumableResourceArn = response.ConsumableResourceArn;
string consumableResourceName = response.ConsumableResourceName;
long createdAt = response.CreatedAt;
long inUseQuantity = response.InUseQuantity;
string resourceType = response.ResourceType;
Dictionary<string, string> tags = response.Tags;
long totalQuantity = response.TotalQuantity;

            

Version Information

.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