Interface ConsumableResourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ConsumableResourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T16:59:48.461Z")
@Stability(Stable)
public interface ConsumableResourceProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a Batch Consumable Resource.
Example:
ConsumableResource licenseResource = ConsumableResource.Builder.create(this, "LicenseResource")
.totalQuantity(100)
.build();
User user = new User(this, "MyUser");
// Describe the resource and list the jobs that use it
licenseResource.grants.read(user);
// Change the total quantity, e.g. to replenish a NON_REPLENISHABLE pool
licenseResource.grants.update(user);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forConsumableResourcePropsstatic final classAn implementation forConsumableResourceProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe name of the consumable resource.default ConsumableResourceTypeThe type of consumable resource.getTags()Tags to apply to the consumable resource.The total quantity of the consumable resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTotalQuantity
The total quantity of the consumable resource.Must be a non-negative integer.
-
getConsumableResourceName
The name of the consumable resource.The name must be unique within the account and Region. Changing it replaces the resource.
Default: - CloudFormation-generated name
-
getResourceType
The type of consumable resource.Changing this property replaces the resource. Because the name must be unique within the account and Region, changing the type of a resource that has a
consumableResourceNamefails the deployment unless the name is changed as well.Default: ConsumableResourceType.REPLENISHABLE
-
getTags
Tags to apply to the consumable resource.Default: - no tags
-
builder
- Returns:
- a
ConsumableResourceProps.BuilderofConsumableResourceProps
-