create_budget
async
¶
create_budget(
farm_id: FarmId,
display_name: ResourceName,
usage_tracking_resource: UsageTrackingResource,
approximate_dollar_limit: ConsumedUsageLimit,
actions: BudgetActionsToAdd,
schedule: BudgetSchedule,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
description: Optional[Description] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[Tags] = None,
) -> CreateBudgetResponse
Creates a budget to set spending thresholds for your rendering activity.
Parameters:
-
farm_id(FarmId) –The farm ID to include in this budget.
-
display_name(ResourceName) –The display name of the budget.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
-
description(Optional[Description], default:None) –The description of the budget.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
-
client_token(Optional[ClientToken], default:None) –The unique token which the server uses to recognize retries of the same request.
-
usage_tracking_resource(UsageTrackingResource) –The queue ID provided to this budget to track usage.
-
approximate_dollar_limit(ConsumedUsageLimit) –The dollar limit based on consumed usage.
-
actions(BudgetActionsToAdd) –The budget actions to specify what happens when the budget runs out.
-
schedule(BudgetSchedule) –The schedule to associate with this budget.
-
tags(Optional[Tags], default:None) –Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ServiceQuotaExceededException–You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/async_deadline.py
3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 | |