Skip to content
v2.278.0

CfnConsumableResourceProps Struct ​

Properties for defining a CfnConsumableResource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const cfnConsumableResourceProps: batch.CfnConsumableResourceProps = {
  resourceType: 'resourceType',
  totalQuantity: 123,

  // the properties below are optional
  consumableResourceName: 'consumableResourceName',
  tags: {
    tagsKey: 'tags',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

cfn_consumable_resource_props = batch.CfnConsumableResourceProps(
    resource_type="resourceType",
    total_quantity=123,

    # the properties below are optional
    consumable_resource_name="consumableResourceName",
    tags={
        "tags_key": "tags"
    }
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

CfnConsumableResourceProps cfnConsumableResourceProps = CfnConsumableResourceProps.builder()
        .resourceType("resourceType")
        .totalQuantity(123)

        // the properties below are optional
        .consumableResourceName("consumableResourceName")
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;

var cfnConsumableResourceProps = new CfnConsumableResourceProps {
    ResourceType = "resourceType",
    TotalQuantity = 123,

    // the properties below are optional
    ConsumableResourceName = "consumableResourceName",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnConsumableResourceProps := &CfnConsumableResourceProps{
	ResourceType: jsii.String("resourceType"),
	TotalQuantity: jsii.Number(123),

	// the properties below are optional
	ConsumableResourceName: jsii.String("consumableResourceName"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

consumableResourceNameoptionalstringconsumable_resource_nameoptionalstrconsumableResourceNameoptionalStringConsumableResourceNameoptionalstringConsumableResourceNameoptional*string #
The name of the consumable resource.
resourceTypestringresource_typestrresourceTypeStringResourceTypestringResourceType*string required #
Indicates whether the resource is available to be re-used after a job completes. Can be one of:.
  • REPLENISHABLE
  • NON_REPLENISHABLE
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
The tags that you apply to the consumable resource to help you categorize and organize your resources.

Each tag consists of a key and an optional value. For more information, see Tagging your AWS Batch resources .

totalQuantitynumbertotal_quantityint | floattotalQuantityNumberTotalQuantitydoubleTotalQuantity*float64 required #
The total amount of the consumable resource that is available.