CfnBudgetPropsMixin
- class aws_cdk.cfn_property_mixins.aws_deadline.CfnBudgetPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a budget to set spending thresholds for your rendering activity.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-budget.html
- CloudformationResource:
AWS::Deadline::Budget
- 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_deadline as deadline import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_budget_props_mixin = deadline.CfnBudgetPropsMixin(deadline.CfnBudgetMixinProps( actions=[deadline.CfnBudgetPropsMixin.BudgetActionToAddProperty( description="description", threshold_percentage=123, type="type" )], approximate_dollar_limit=123, description="description", display_name="displayName", farm_id="farmId", schedule=deadline.CfnBudgetPropsMixin.BudgetScheduleProperty( fixed=deadline.CfnBudgetPropsMixin.FixedBudgetScheduleProperty( end_time="endTime", start_time="startTime" ) ), tags=[cdk.CfnTag( key="key", value="value" )], usage_tracking_resource=deadline.CfnBudgetPropsMixin.UsageTrackingResourceProperty( queue_id="queueId" ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Deadline::Budget.- Parameters:
props (
Union[CfnBudgetMixinProps,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 = ['actions', 'approximateDollarLimit', 'description', 'displayName', 'farmId', 'schedule', 'tags', 'usageTrackingResource']
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.
BudgetActionToAddProperty
- class CfnBudgetPropsMixin.BudgetActionToAddProperty(*, description=None, threshold_percentage=None, type=None)
Bases:
objectThe budget action to add.
- Parameters:
description (
Optional[str]) – A description for the budget action.threshold_percentage (
Union[int,float,None]) – The percentage threshold for the budget action.type (
Optional[str]) – The type of budget action.
- 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_deadline as deadline budget_action_to_add_property = deadline.CfnBudgetPropsMixin.BudgetActionToAddProperty( description="description", threshold_percentage=123, type="type" )
Attributes
- description
A description for the budget action.
- threshold_percentage
The percentage threshold for the budget action.
BudgetScheduleProperty
- class CfnBudgetPropsMixin.BudgetScheduleProperty(*, fixed=None)
Bases:
objectThe start and end time of the budget.
- Parameters:
fixed (
Union[IResolvable,FixedBudgetScheduleProperty,Dict[str,Any],None]) – The details of a fixed budget schedule.- 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_deadline as deadline budget_schedule_property = deadline.CfnBudgetPropsMixin.BudgetScheduleProperty( fixed=deadline.CfnBudgetPropsMixin.FixedBudgetScheduleProperty( end_time="endTime", start_time="startTime" ) )
Attributes
- fixed
The details of a fixed budget schedule.
FixedBudgetScheduleProperty
- class CfnBudgetPropsMixin.FixedBudgetScheduleProperty(*, end_time=None, start_time=None)
Bases:
objectThe details of a fixed budget schedule.
- Parameters:
end_time (
Optional[str]) – When the budget ends.start_time (
Optional[str]) – When the budget starts.
- 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_deadline as deadline fixed_budget_schedule_property = deadline.CfnBudgetPropsMixin.FixedBudgetScheduleProperty( end_time="endTime", start_time="startTime" )
Attributes
- end_time
When the budget ends.
UsageTrackingResourceProperty
- class CfnBudgetPropsMixin.UsageTrackingResourceProperty(*, queue_id=None)
Bases:
objectThe usage details of the allotted budget.
- Parameters:
queue_id (
Optional[str]) – The queue ID.- 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_deadline as deadline usage_tracking_resource_property = deadline.CfnBudgetPropsMixin.UsageTrackingResourceProperty( queue_id="queueId" )
Attributes