1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. batch
  5. ConsumableResource

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.batch.ConsumableResource

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::Batch::ConsumableResource

Create ConsumableResource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ConsumableResource(name: string, args: ConsumableResourceArgs, opts?: CustomResourceOptions);
@overload
def ConsumableResource(resource_name: str,
                       args: ConsumableResourceArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def ConsumableResource(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       resource_type: Optional[ConsumableResourceResourceType] = None,
                       total_quantity: Optional[int] = None,
                       consumable_resource_name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
func NewConsumableResource(ctx *Context, name string, args ConsumableResourceArgs, opts ...ResourceOption) (*ConsumableResource, error)
public ConsumableResource(string name, ConsumableResourceArgs args, CustomResourceOptions? opts = null)
public ConsumableResource(String name, ConsumableResourceArgs args)
public ConsumableResource(String name, ConsumableResourceArgs args, CustomResourceOptions options)
type: aws-native:batch:ConsumableResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ConsumableResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ConsumableResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ConsumableResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ConsumableResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ConsumableResourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ConsumableResource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ConsumableResource resource accepts the following input properties:

ResourceType This property is required. Pulumi.AwsNative.Batch.ConsumableResourceResourceType
Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE
  • NON_REPLENISHABLE
TotalQuantity This property is required. int
Total Quantity of ConsumableResource.
ConsumableResourceName string
Name of ConsumableResource.
Tags Dictionary<string, string>
A key-value pair to associate with a resource.
ResourceType This property is required. ConsumableResourceResourceType
Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE
  • NON_REPLENISHABLE
TotalQuantity This property is required. int
Total Quantity of ConsumableResource.
ConsumableResourceName string
Name of ConsumableResource.
Tags map[string]string
A key-value pair to associate with a resource.
resourceType This property is required. ConsumableResourceResourceType
Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE
  • NON_REPLENISHABLE
totalQuantity This property is required. Integer
Total Quantity of ConsumableResource.
consumableResourceName String
Name of ConsumableResource.
tags Map<String,String>
A key-value pair to associate with a resource.
resourceType This property is required. ConsumableResourceResourceType
Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE
  • NON_REPLENISHABLE
totalQuantity This property is required. number
Total Quantity of ConsumableResource.
consumableResourceName string
Name of ConsumableResource.
tags {[key: string]: string}
A key-value pair to associate with a resource.
resource_type This property is required. ConsumableResourceResourceType
Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE
  • NON_REPLENISHABLE
total_quantity This property is required. int
Total Quantity of ConsumableResource.
consumable_resource_name str
Name of ConsumableResource.
tags Mapping[str, str]
A key-value pair to associate with a resource.
resourceType This property is required. "REPLENISHABLE" | "NON_REPLENISHABLE"
Indicates whether the resource is available to be re-used after a job completes. Can be one of:

  • REPLENISHABLE
  • NON_REPLENISHABLE
totalQuantity This property is required. Number
Total Quantity of ConsumableResource.
consumableResourceName String
Name of ConsumableResource.
tags Map<String>
A key-value pair to associate with a resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the ConsumableResource resource produces the following output properties:

AvailableQuantity int
Available Quantity of ConsumableResource.
ConsumableResourceArn string
The Amazon Resource Name (ARN) of the consumable resource.
CreatedAt int
The Unix timestamp (in milliseconds) for when the consumable resource was created.
Id string
The provider-assigned unique ID for this managed resource.
InUseQuantity int
In-use Quantity of ConsumableResource.
AvailableQuantity int
Available Quantity of ConsumableResource.
ConsumableResourceArn string
The Amazon Resource Name (ARN) of the consumable resource.
CreatedAt int
The Unix timestamp (in milliseconds) for when the consumable resource was created.
Id string
The provider-assigned unique ID for this managed resource.
InUseQuantity int
In-use Quantity of ConsumableResource.
availableQuantity Integer
Available Quantity of ConsumableResource.
consumableResourceArn String
The Amazon Resource Name (ARN) of the consumable resource.
createdAt Integer
The Unix timestamp (in milliseconds) for when the consumable resource was created.
id String
The provider-assigned unique ID for this managed resource.
inUseQuantity Integer
In-use Quantity of ConsumableResource.
availableQuantity number
Available Quantity of ConsumableResource.
consumableResourceArn string
The Amazon Resource Name (ARN) of the consumable resource.
createdAt number
The Unix timestamp (in milliseconds) for when the consumable resource was created.
id string
The provider-assigned unique ID for this managed resource.
inUseQuantity number
In-use Quantity of ConsumableResource.
available_quantity int
Available Quantity of ConsumableResource.
consumable_resource_arn str
The Amazon Resource Name (ARN) of the consumable resource.
created_at int
The Unix timestamp (in milliseconds) for when the consumable resource was created.
id str
The provider-assigned unique ID for this managed resource.
in_use_quantity int
In-use Quantity of ConsumableResource.
availableQuantity Number
Available Quantity of ConsumableResource.
consumableResourceArn String
The Amazon Resource Name (ARN) of the consumable resource.
createdAt Number
The Unix timestamp (in milliseconds) for when the consumable resource was created.
id String
The provider-assigned unique ID for this managed resource.
inUseQuantity Number
In-use Quantity of ConsumableResource.

Supporting Types

ConsumableResourceResourceType
, ConsumableResourceResourceTypeArgs

Replenishable
REPLENISHABLE
NonReplenishable
NON_REPLENISHABLE
ConsumableResourceResourceTypeReplenishable
REPLENISHABLE
ConsumableResourceResourceTypeNonReplenishable
NON_REPLENISHABLE
Replenishable
REPLENISHABLE
NonReplenishable
NON_REPLENISHABLE
Replenishable
REPLENISHABLE
NonReplenishable
NON_REPLENISHABLE
REPLENISHABLE
REPLENISHABLE
NON_REPLENISHABLE
NON_REPLENISHABLE
"REPLENISHABLE"
REPLENISHABLE
"NON_REPLENISHABLE"
NON_REPLENISHABLE

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi