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

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 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.
    
    
    resource "aws-native_batch_consumable_resource" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ConsumableResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args ConsumableResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConsumableResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 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 int
    Total Quantity of ConsumableResource.
    ConsumableResourceName string
    Name of ConsumableResource.
    Tags Dictionary<string, string>
    A key-value pair to associate with a resource.
    ResourceType ConsumableResourceResourceType
    Indicates whether the resource is available to be re-used after a job completes. Can be one of:

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

    • REPLENISHABLE
    • NON_REPLENISHABLE
    total_quantity number
    Total Quantity of ConsumableResource.
    consumable_resource_name string
    Name of ConsumableResource.
    tags map(string)
    A key-value pair to associate with a resource.
    resourceType ConsumableResourceResourceType
    Indicates whether the resource is available to be re-used after a job completes. Can be one of:

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

    • REPLENISHABLE
    • NON_REPLENISHABLE
    totalQuantity 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 ConsumableResourceResourceType
    Indicates whether the resource is available to be re-used after a job completes. Can be one of:

    • REPLENISHABLE
    • NON_REPLENISHABLE
    total_quantity 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 "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 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.
    available_quantity number
    Available Quantity of ConsumableResource.
    consumable_resource_arn string
    The Amazon Resource Name (ARN) of the consumable resource.
    created_at number
    The Unix timestamp (in milliseconds) for when the consumable resource was created.
    id string
    The provider-assigned unique ID for this managed resource.
    in_use_quantity number
    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.

    Look up Existing ConsumableResource Resource

    Get an existing ConsumableResource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ConsumableResource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ConsumableResource
    func GetConsumableResource(ctx *Context, name string, id IDInput, state *ConsumableResourceState, opts ...ResourceOption) (*ConsumableResource, error)
    public static ConsumableResource Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ConsumableResource get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingConsumableResource:    type: aws-native:batch:ConsumableResource    get:      id: ${id}
    import {
      to = aws-native_batch_consumable_resource.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ConsumableResourceState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    ConsumableResourceResourceType

    Type of Consumable Resource.

    NameValue
    ReplenishableREPLENISHABLE
    NonReplenishableNON_REPLENISHABLE
    NameValue
    ConsumableResourceResourceTypeReplenishableREPLENISHABLE
    ConsumableResourceResourceTypeNonReplenishableNON_REPLENISHABLE
    Value
    REPLENISHABLE
    NON_REPLENISHABLE
    NameValue
    ReplenishableREPLENISHABLE
    NonReplenishableNON_REPLENISHABLE
    NameValue
    ReplenishableREPLENISHABLE
    NonReplenishableNON_REPLENISHABLE
    NameValue
    REPLENISHABLEREPLENISHABLE
    NON_REPLENISHABLENON_REPLENISHABLE
    Value
    REPLENISHABLE
    NON_REPLENISHABLE

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial