CfnSpendingLimitPropsMixin
- class aws_cdk.cfn_property_mixins.aws_braket.CfnSpendingLimitPropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-braket-spendinglimit.html
- CloudformationResource:
AWS::Braket::SpendingLimit
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_braket as braket import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_spending_limit_props_mixin = braket.CfnSpendingLimitPropsMixin(braket.CfnSpendingLimitMixinProps( device_arn="deviceArn", spending_limit="spendingLimit", tags=[cdk.CfnTag( key="key", value="value" )], time_period=braket.CfnSpendingLimitPropsMixin.TimePeriodProperty( end_at="endAt", start_at="startAt" ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Braket::SpendingLimit.- Parameters:
props (
Union[CfnSpendingLimitMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['deviceArn', 'spendingLimit', 'tags', 'timePeriod']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
TimePeriodProperty
- class CfnSpendingLimitPropsMixin.TimePeriodProperty(*, end_at=None, start_at=None)
Bases:
objectDefines a time range for spending limits, specifying when the limit is active.
- Parameters:
end_at (
Optional[str]) – The end date and time for the spending limit period, in ISO 8601 format.start_at (
Optional[str]) – The start date and time for the spending limit period, in ISO 8601 format.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_braket as braket time_period_property = braket.CfnSpendingLimitPropsMixin.TimePeriodProperty( end_at="endAt", start_at="startAt" )
Attributes
- end_at
The end date and time for the spending limit period, in ISO 8601 format.
- start_at
The start date and time for the spending limit period, in ISO 8601 format.