aws_sdk_deadline/client/
create_budget.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateBudget`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_client_token):<br>required: **false**<br><p>The unique token which the server uses to recognize retries of the same request.</p><br>
    ///   - [`farm_id(impl Into<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID to include in this budget.</p><br>
    ///   - [`usage_tracking_resource(UsageTrackingResource)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::usage_tracking_resource) / [`set_usage_tracking_resource(Option<UsageTrackingResource>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_usage_tracking_resource):<br>required: **true**<br><p>The queue ID provided to this budget to track usage.</p><br>
    ///   - [`display_name(impl Into<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_display_name):<br>required: **true**<br><p>The display name of the budget.</p><important>  <p>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.</p> </important><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_description):<br>required: **false**<br><p>The description of the budget.</p><important>  <p>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.</p> </important><br>
    ///   - [`approximate_dollar_limit(f32)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::approximate_dollar_limit) / [`set_approximate_dollar_limit(Option<f32>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_approximate_dollar_limit):<br>required: **true**<br><p>The dollar limit based on consumed usage.</p><br>
    ///   - [`actions(BudgetActionToAdd)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::actions) / [`set_actions(Option<Vec::<BudgetActionToAdd>>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_actions):<br>required: **true**<br><p>The budget actions to specify what happens when the budget runs out.</p><br>
    ///   - [`schedule(BudgetSchedule)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::schedule) / [`set_schedule(Option<BudgetSchedule>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_schedule):<br>required: **true**<br><p>The schedule to associate with this budget.</p><br>
    /// - On success, responds with [`CreateBudgetOutput`](crate::operation::create_budget::CreateBudgetOutput) with field(s):
    ///   - [`budget_id(String)`](crate::operation::create_budget::CreateBudgetOutput::budget_id): <p>The budget ID.</p>
    /// - On failure, responds with [`SdkError<CreateBudgetError>`](crate::operation::create_budget::CreateBudgetError)
    pub fn create_budget(&self) -> crate::operation::create_budget::builders::CreateBudgetFluentBuilder {
        crate::operation::create_budget::builders::CreateBudgetFluentBuilder::new(self.handle.clone())
    }
}