Class CfnBudget
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.deadline.CfnBudget
- All Implemented Interfaces:
IInspectable,IBudgetRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:07.459Z")
@Stability(Stable)
public class CfnBudget
extends CfnResource
implements IInspectable, IBudgetRef, ITaggableV2
Creates a budget to set spending thresholds for your rendering activity.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.deadline.*;
CfnBudget cfnBudget = CfnBudget.Builder.create(this, "MyCfnBudget")
.actions(List.of(BudgetActionToAddProperty.builder()
.thresholdPercentage(123)
.type("type")
// the properties below are optional
.description("description")
.build()))
.approximateDollarLimit(123)
.displayName("displayName")
.farmId("farmId")
.schedule(BudgetScheduleProperty.builder()
.fixed(FixedBudgetScheduleProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build())
.build())
.usageTrackingResource(UsageTrackingResourceProperty.builder()
.queueId("queueId")
.build())
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe budget action to add.static interfaceThe start and end time of the budget.static final classA fluent builder forCfnBudget.static interfaceThe details of a fixed budget schedule.static interfaceThe usage details of the allotted budget.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.deadline.IBudgetRef
IBudgetRef.Jsii$Default, IBudgetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnBudget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBudget(software.amazon.jsii.JsiiObjectRef objRef) CfnBudget(software.constructs.Construct scope, String id, CfnBudgetProps props) Create a newAWS::Deadline::Budget. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForBudget(IBudgetRef resource) The budget actions to specify what happens when the budget runs out.The dollar limit based on consumed usage.The ARN of the budget.The budget ID.The status of the budget.A reference to a Budget resource.Tag Manager which manages the tags for this resource.The description of the budget.The display name of the budget.The farm ID.The start and end time of the budget.getTags()An array of key-value pairs to apply to this resource.The usage details of the allotted budget.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnBudget.renderProperties(Map<String, Object> props) voidsetActions(List<Object> value) The budget actions to specify what happens when the budget runs out.voidsetActions(IResolvable value) The budget actions to specify what happens when the budget runs out.voidsetApproximateDollarLimit(Number value) The dollar limit based on consumed usage.voidsetDescription(String value) The description of the budget.voidsetDisplayName(String value) The display name of the budget.voidThe farm ID.voidsetSchedule(IResolvable value) The start and end time of the budget.voidThe start and end time of the budget.voidAn array of key-value pairs to apply to this resource.voidThe usage details of the allotted budget.voidThe usage details of the allotted budget.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBudget
protected CfnBudget(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBudget
protected CfnBudget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBudget
@Stability(Stable) public CfnBudget(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBudgetProps props) Create a newAWS::Deadline::Budget.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForBudget
- Parameters:
resource- This parameter is required.
-
isCfnBudget
Checks whether the given object is a CfnBudget.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the budget. -
getAttrBudgetId
The budget ID. -
getAttrStatus
The status of the budget. -
getBudgetRef
A reference to a Budget resource.- Specified by:
getBudgetRefin interfaceIBudgetRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getActions
The budget actions to specify what happens when the budget runs out.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBudget.BudgetActionToAddProperty> -
setActions
The budget actions to specify what happens when the budget runs out. -
setActions
The budget actions to specify what happens when the budget runs out. -
getApproximateDollarLimit
The dollar limit based on consumed usage. -
setApproximateDollarLimit
The dollar limit based on consumed usage. -
getDisplayName
The display name of the budget. -
setDisplayName
The display name of the budget. -
getFarmId
The farm ID. -
setFarmId
The farm ID. -
getSchedule
The start and end time of the budget.Returns union: either
IResolvableorCfnBudget.BudgetScheduleProperty -
setSchedule
The start and end time of the budget. -
setSchedule
The start and end time of the budget. -
getUsageTrackingResource
The usage details of the allotted budget.Returns union: either
IResolvableorCfnBudget.UsageTrackingResourceProperty -
setUsageTrackingResource
The usage details of the allotted budget. -
setUsageTrackingResource
@Stability(Stable) public void setUsageTrackingResource(@NotNull CfnBudget.UsageTrackingResourceProperty value) The usage details of the allotted budget. -
getDescription
The description of the budget. -
setDescription
The description of the budget. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-