aws_sdk_braket/client/
create_spending_limit.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 [`CreateSpendingLimit`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::set_client_token):<br>required: **true**<br><p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.</p><br>
7    ///   - [`device_arn(impl Into<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::device_arn) / [`set_device_arn(Option<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::set_device_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.</p><br>
8    ///   - [`spending_limit(impl Into<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::spending_limit) / [`set_spending_limit(Option<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::set_spending_limit):<br>required: **true**<br><p>The maximum amount that can be spent on the specified device, in USD.</p><br>
9    ///   - [`time_period(TimePeriod)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::time_period) / [`set_time_period(Option<TimePeriod>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::set_time_period):<br>required: **false**<br><p>The time period during which the spending limit is active, including start and end dates.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to apply to the spending limit. Each tag consists of a key and an optional value.</p><br>
11    /// - On success, responds with [`CreateSpendingLimitOutput`](crate::operation::create_spending_limit::CreateSpendingLimitOutput) with field(s):
12    ///   - [`spending_limit_arn(String)`](crate::operation::create_spending_limit::CreateSpendingLimitOutput::spending_limit_arn): <p>The Amazon Resource Name (ARN) of the created spending limit.</p>
13    /// - On failure, responds with [`SdkError<CreateSpendingLimitError>`](crate::operation::create_spending_limit::CreateSpendingLimitError)
14    pub fn create_spending_limit(&self) -> crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder {
15        crate::operation::create_spending_limit::builders::CreateSpendingLimitFluentBuilder::new(self.handle.clone())
16    }
17}