aws_sdk_budgets/client/
create_budget.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateBudget`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_id(impl Into<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_account_id):<br>required: **true**<br><p>The <code>accountId</code> that is associated with the budget.</p><br>
7    ///   - [`budget(Budget)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::budget) / [`set_budget(Option<Budget>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_budget):<br>required: **true**<br><p>The budget object that you want to create.</p><br>
8    ///   - [`notifications_with_subscribers(NotificationWithSubscribers)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::notifications_with_subscribers) / [`set_notifications_with_subscribers(Option<Vec::<NotificationWithSubscribers>>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_notifications_with_subscribers):<br>required: **false**<br><p>A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your <code>CreateBudget</code> call, Amazon Web Services creates the notifications and subscribers for you.</p><br>
9    ///   - [`resource_tags(ResourceTag)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::resource_tags) / [`set_resource_tags(Option<Vec::<ResourceTag>>)`](crate::operation::create_budget::builders::CreateBudgetFluentBuilder::set_resource_tags):<br>required: **false**<br><p>An optional list of tags to associate with the specified budget. Each tag consists of a key and a value, and each key must be unique for the resource.</p><br>
10    /// - On success, responds with [`CreateBudgetOutput`](crate::operation::create_budget::CreateBudgetOutput)
11    /// - On failure, responds with [`SdkError<CreateBudgetError>`](crate::operation::create_budget::CreateBudgetError)
12    pub fn create_budget(&self) -> crate::operation::create_budget::builders::CreateBudgetFluentBuilder {
13        crate::operation::create_budget::builders::CreateBudgetFluentBuilder::new(self.handle.clone())
14    }
15}