Struct rusoto_budgets::BudgetsClient
source · [−]pub struct BudgetsClient { /* private fields */ }
Expand description
A client for the AWSBudgets API.
Implementations
sourceimpl BudgetsClient
impl BudgetsClient
sourcepub fn new(region: Region) -> BudgetsClient
pub fn new(region: Region) -> BudgetsClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> BudgetsClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> BudgetsClient
Trait Implementations
sourceimpl Budgets for BudgetsClient
impl Budgets for BudgetsClient
sourcefn create_budget<'life0, 'async_trait>(
&'life0 self,
input: CreateBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<CreateBudgetResponse, RusotoError<CreateBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_budget<'life0, 'async_trait>(
&'life0 self,
input: CreateBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<CreateBudgetResponse, RusotoError<CreateBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a budget and, if included, notifications and subscribers.
Only one of BudgetLimit
or PlannedBudgetLimits
can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits
, see the Examples section.
sourcefn create_budget_action<'life0, 'async_trait>(
&'life0 self,
input: CreateBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<CreateBudgetActionResponse, RusotoError<CreateBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_budget_action<'life0, 'async_trait>(
&'life0 self,
input: CreateBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<CreateBudgetActionResponse, RusotoError<CreateBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a budget action.
sourcefn create_notification<'life0, 'async_trait>(
&'life0 self,
input: CreateNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<CreateNotificationResponse, RusotoError<CreateNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_notification<'life0, 'async_trait>(
&'life0 self,
input: CreateNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<CreateNotificationResponse, RusotoError<CreateNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a notification. You must create the budget before you create the associated notification.
sourcefn create_subscriber<'life0, 'async_trait>(
&'life0 self,
input: CreateSubscriberRequest
) -> Pin<Box<dyn Future<Output = Result<CreateSubscriberResponse, RusotoError<CreateSubscriberError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_subscriber<'life0, 'async_trait>(
&'life0 self,
input: CreateSubscriberRequest
) -> Pin<Box<dyn Future<Output = Result<CreateSubscriberResponse, RusotoError<CreateSubscriberError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
sourcefn delete_budget<'life0, 'async_trait>(
&'life0 self,
input: DeleteBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteBudgetResponse, RusotoError<DeleteBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_budget<'life0, 'async_trait>(
&'life0 self,
input: DeleteBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteBudgetResponse, RusotoError<DeleteBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers that are associated with that budget.
sourcefn delete_budget_action<'life0, 'async_trait>(
&'life0 self,
input: DeleteBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteBudgetActionResponse, RusotoError<DeleteBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_budget_action<'life0, 'async_trait>(
&'life0 self,
input: DeleteBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteBudgetActionResponse, RusotoError<DeleteBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a budget action.
sourcefn delete_notification<'life0, 'async_trait>(
&'life0 self,
input: DeleteNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteNotificationResponse, RusotoError<DeleteNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_notification<'life0, 'async_trait>(
&'life0 self,
input: DeleteNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteNotificationResponse, RusotoError<DeleteNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a notification.
Deleting a notification also deletes the subscribers that are associated with the notification.
sourcefn delete_subscriber<'life0, 'async_trait>(
&'life0 self,
input: DeleteSubscriberRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteSubscriberResponse, RusotoError<DeleteSubscriberError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_subscriber<'life0, 'async_trait>(
&'life0 self,
input: DeleteSubscriberRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteSubscriberResponse, RusotoError<DeleteSubscriberError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
sourcefn describe_budget<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetResponse, RusotoError<DescribeBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budget<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetResponse, RusotoError<DescribeBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Describes a budget.
The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits
, see the Examples section.
sourcefn describe_budget_action<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionResponse, RusotoError<DescribeBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budget_action<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionResponse, RusotoError<DescribeBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Describes a budget action detail.
sourcefn describe_budget_action_histories<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionHistoriesRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionHistoriesResponse, RusotoError<DescribeBudgetActionHistoriesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budget_action_histories<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionHistoriesRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionHistoriesResponse, RusotoError<DescribeBudgetActionHistoriesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Describes a budget action history detail.
sourcefn describe_budget_actions_for_account<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionsForAccountRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionsForAccountResponse, RusotoError<DescribeBudgetActionsForAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budget_actions_for_account<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionsForAccountRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionsForAccountResponse, RusotoError<DescribeBudgetActionsForAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Describes all of the budget actions for an account.
sourcefn describe_budget_actions_for_budget<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionsForBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionsForBudgetResponse, RusotoError<DescribeBudgetActionsForBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budget_actions_for_budget<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetActionsForBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetActionsForBudgetResponse, RusotoError<DescribeBudgetActionsForBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Describes all of the budget actions for a budget.
sourcefn describe_budget_performance_history<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetPerformanceHistoryRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetPerformanceHistoryResponse, RusotoError<DescribeBudgetPerformanceHistoryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budget_performance_history<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetPerformanceHistoryRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetPerformanceHistoryResponse, RusotoError<DescribeBudgetPerformanceHistoryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Describes the history for DAILY
, MONTHLY
, and QUARTERLY
budgets. Budget history isn't available for ANNUAL
budgets.
sourcefn describe_budgets<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetsResponse, RusotoError<DescribeBudgetsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_budgets<'life0, 'async_trait>(
&'life0 self,
input: DescribeBudgetsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeBudgetsResponse, RusotoError<DescribeBudgetsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the budgets that are associated with an account.
The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits
, see the Examples section.
sourcefn describe_notifications_for_budget<'life0, 'async_trait>(
&'life0 self,
input: DescribeNotificationsForBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeNotificationsForBudgetResponse, RusotoError<DescribeNotificationsForBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_notifications_for_budget<'life0, 'async_trait>(
&'life0 self,
input: DescribeNotificationsForBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeNotificationsForBudgetResponse, RusotoError<DescribeNotificationsForBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the notifications that are associated with a budget.
sourcefn describe_subscribers_for_notification<'life0, 'async_trait>(
&'life0 self,
input: DescribeSubscribersForNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeSubscribersForNotificationResponse, RusotoError<DescribeSubscribersForNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_subscribers_for_notification<'life0, 'async_trait>(
&'life0 self,
input: DescribeSubscribersForNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeSubscribersForNotificationResponse, RusotoError<DescribeSubscribersForNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the subscribers that are associated with a notification.
sourcefn execute_budget_action<'life0, 'async_trait>(
&'life0 self,
input: ExecuteBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<ExecuteBudgetActionResponse, RusotoError<ExecuteBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn execute_budget_action<'life0, 'async_trait>(
&'life0 self,
input: ExecuteBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<ExecuteBudgetActionResponse, RusotoError<ExecuteBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Executes a budget action.
sourcefn update_budget<'life0, 'async_trait>(
&'life0 self,
input: UpdateBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateBudgetResponse, RusotoError<UpdateBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_budget<'life0, 'async_trait>(
&'life0 self,
input: UpdateBudgetRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateBudgetResponse, RusotoError<UpdateBudgetError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates a budget. You can change every part of a budget except for the budgetName
and the calculatedSpend
. When you modify a budget, the calculatedSpend
drops to zero until AWS has new usage data to use for forecasting.
Only one of BudgetLimit
or PlannedBudgetLimits
can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits
, see the Examples section.
sourcefn update_budget_action<'life0, 'async_trait>(
&'life0 self,
input: UpdateBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateBudgetActionResponse, RusotoError<UpdateBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_budget_action<'life0, 'async_trait>(
&'life0 self,
input: UpdateBudgetActionRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateBudgetActionResponse, RusotoError<UpdateBudgetActionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates a budget action.
sourcefn update_notification<'life0, 'async_trait>(
&'life0 self,
input: UpdateNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateNotificationResponse, RusotoError<UpdateNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_notification<'life0, 'async_trait>(
&'life0 self,
input: UpdateNotificationRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateNotificationResponse, RusotoError<UpdateNotificationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates a notification.
sourcefn update_subscriber<'life0, 'async_trait>(
&'life0 self,
input: UpdateSubscriberRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateSubscriberResponse, RusotoError<UpdateSubscriberError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_subscriber<'life0, 'async_trait>(
&'life0 self,
input: UpdateSubscriberRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateSubscriberResponse, RusotoError<UpdateSubscriberError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates a subscriber.
sourceimpl Clone for BudgetsClient
impl Clone for BudgetsClient
sourcefn clone(&self) -> BudgetsClient
fn clone(&self) -> BudgetsClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for BudgetsClient
impl Send for BudgetsClient
impl Sync for BudgetsClient
impl Unpin for BudgetsClient
impl !UnwindSafe for BudgetsClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more