Class CfnSpendingLimit
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.braket.CfnSpendingLimit
- All Implemented Interfaces:
IInspectable,ISpendingLimitRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:31:50.194Z")
@Stability(Stable)
public class CfnSpendingLimit
extends CfnResource
implements IInspectable, ISpendingLimitRef, ITaggableV2
Creates a spending limit for a specified quantum device.
Spending limits help you control costs by setting maximum amounts that can be spent on quantum computing tasks within a specified time period.
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.braket.*;
CfnSpendingLimit cfnSpendingLimit = CfnSpendingLimit.Builder.create(this, "MyCfnSpendingLimit")
.deviceArn("deviceArn")
.spendingLimit("spendingLimit")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timePeriod(TimePeriodProperty.builder()
.endAt("endAt")
.startAt("startAt")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSpendingLimit.static interfaceDefines a time range for spending limits, specifying when the limit is active.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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.interfaces.braket.ISpendingLimitRef
ISpendingLimitRef.Jsii$Default, ISpendingLimitRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnSpendingLimit(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSpendingLimit(software.amazon.jsii.JsiiObjectRef objRef) CfnSpendingLimit(software.constructs.Construct scope, String id, CfnSpendingLimitProps props) Create a newAWS::Braket::SpendingLimit. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSpendingLimit(ISpendingLimitRef resource) The date and time when the spending limit was created, in ISO 8601 format.The amount currently queued for spending on the device, in USD.The Amazon Resource Name (ARN) that uniquely identifies the spending limit.The total amount spent on the device so far during the current time period, in USD.The date and time when the spending limit was last modified, in ISO 8601 format.Tag Manager which manages the tags for this resource.The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.The maximum amount that can be spent on the specified device, in USD.A reference to a SpendingLimit resource.getTags()The tags to apply to the spending limit.Defines a time range for spending limits, specifying when the limit is active.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSpendingLimit.renderProperties(Map<String, Object> props) voidsetDeviceArn(String value) The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.voidsetSpendingLimit(String value) The maximum amount that can be spent on the specified device, in USD.voidThe tags to apply to the spending limit.voidsetTimePeriod(IResolvable value) Defines a time range for spending limits, specifying when the limit is active.voidDefines a time range for spending limits, specifying when the limit is active.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, 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
-
CfnSpendingLimit
protected CfnSpendingLimit(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSpendingLimit
protected CfnSpendingLimit(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSpendingLimit
@Stability(Stable) public CfnSpendingLimit(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSpendingLimitProps props) Create a newAWS::Braket::SpendingLimit.- 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
-
arnForSpendingLimit
@Stability(Stable) @NotNull public static String arnForSpendingLimit(@NotNull ISpendingLimitRef resource) - Parameters:
resource- This parameter is required.
-
isCfnSpendingLimit
Checks whether the given object is a CfnSpendingLimit.- 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.
-
getAttrCreatedAt
The date and time when the spending limit was created, in ISO 8601 format. -
getAttrQueuedSpend
The amount currently queued for spending on the device, in USD. -
getAttrSpendingLimitArn
The Amazon Resource Name (ARN) that uniquely identifies the spending limit. -
getAttrTotalSpend
The total amount spent on the device so far during the current time period, in USD. -
getAttrUpdatedAt
The date and time when the spending limit was last modified, in ISO 8601 format. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getSpendingLimitRef
A reference to a SpendingLimit resource.- Specified by:
getSpendingLimitRefin interfaceISpendingLimitRef
-
getDeviceArn
The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to. -
setDeviceArn
The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to. -
getSpendingLimit
The maximum amount that can be spent on the specified device, in USD. -
setSpendingLimit
The maximum amount that can be spent on the specified device, in USD. -
getTags
The tags to apply to the spending limit. -
setTags
The tags to apply to the spending limit. -
getTimePeriod
Defines a time range for spending limits, specifying when the limit is active.Returns union: either
IResolvableorCfnSpendingLimit.TimePeriodProperty -
setTimePeriod
Defines a time range for spending limits, specifying when the limit is active. -
setTimePeriod
Defines a time range for spending limits, specifying when the limit is active.
-