Struct aws_sdk_budgets::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Budgets
Client for invoking operations on AWS Budgets. Each operation on AWS Budgets is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_budgets::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_budgets::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_budgets::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn create_budget(&self) -> CreateBudget
pub fn create_budget(&self) -> CreateBudget
Constructs a fluent builder for the CreateBudget
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget.budget(Budget)
/set_budget(Option<Budget>)
:The budget object that you want to create.
notifications_with_subscribers(Vec<NotificationWithSubscribers>)
/set_notifications_with_subscribers(Option<Vec<NotificationWithSubscribers>>)
: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
CreateBudget
call, Amazon Web Services creates the notifications and subscribers for you.
- On success, responds with
CreateBudgetOutput
- On failure, responds with
SdkError<CreateBudgetError>
sourcepub fn create_budget_action(&self) -> CreateBudgetAction
pub fn create_budget_action(&self) -> CreateBudgetAction
Constructs a fluent builder for the CreateBudgetAction
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
notification_type(NotificationType)
/set_notification_type(Option<NotificationType>)
:The type of a notification. It must be ACTUAL or FORECASTED.
action_type(ActionType)
/set_action_type(Option<ActionType>)
:The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
action_threshold(ActionThreshold)
/set_action_threshold(Option<ActionThreshold>)
:The trigger threshold of the action.
definition(Definition)
/set_definition(Option<Definition>)
:Specifies all of the type-specific parameters.
execution_role_arn(impl Into<String>)
/set_execution_role_arn(Option<String>)
:The role passed for action execution and reversion. Roles and actions must be in the same account.
approval_model(ApprovalModel)
/set_approval_model(Option<ApprovalModel>)
:This specifies if the action needs manual or automatic approval.
subscribers(Vec<Subscriber>)
/set_subscribers(Option<Vec<Subscriber>>)
:A list of subscribers.
- On success, responds with
CreateBudgetActionOutput
with field(s):account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
- On failure, responds with
SdkError<CreateBudgetActionError>
sourcepub fn create_notification(&self) -> CreateNotification
pub fn create_notification(&self) -> CreateNotification
Constructs a fluent builder for the CreateNotification
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget that you want to create a notification for.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget that you want Amazon Web Services to notify you about. Budget names must be unique within an account.
notification(Notification)
/set_notification(Option<Notification>)
:The notification that you want to create.
subscribers(Vec<Subscriber>)
/set_subscribers(Option<Vec<Subscriber>>)
:A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to 10 email subscribers.
- On success, responds with
CreateNotificationOutput
- On failure, responds with
SdkError<CreateNotificationError>
sourcepub fn create_subscriber(&self) -> CreateSubscriber
pub fn create_subscriber(&self) -> CreateSubscriber
Constructs a fluent builder for the CreateSubscriber
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget that you want to create a subscriber for.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget that you want to subscribe to. Budget names must be unique within an account.
notification(Notification)
/set_notification(Option<Notification>)
:The notification that you want to create a subscriber for.
subscriber(Subscriber)
/set_subscriber(Option<Subscriber>)
:The subscriber that you want to associate with a budget notification.
- On success, responds with
CreateSubscriberOutput
- On failure, responds with
SdkError<CreateSubscriberError>
sourcepub fn delete_budget(&self) -> DeleteBudget
pub fn delete_budget(&self) -> DeleteBudget
Constructs a fluent builder for the DeleteBudget
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget that you want to delete.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget that you want to delete.
- On success, responds with
DeleteBudgetOutput
- On failure, responds with
SdkError<DeleteBudgetError>
sourcepub fn delete_budget_action(&self) -> DeleteBudgetAction
pub fn delete_budget_action(&self) -> DeleteBudgetAction
Constructs a fluent builder for the DeleteBudgetAction
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(impl Into<String>)
/set_action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
- On success, responds with
DeleteBudgetActionOutput
with field(s):account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action(Option<Action>)
:A budget action resource.
- On failure, responds with
SdkError<DeleteBudgetActionError>
sourcepub fn delete_notification(&self) -> DeleteNotification
pub fn delete_notification(&self) -> DeleteNotification
Constructs a fluent builder for the DeleteNotification
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget whose notification you want to delete.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget whose notification you want to delete.
notification(Notification)
/set_notification(Option<Notification>)
:The notification that you want to delete.
- On success, responds with
DeleteNotificationOutput
- On failure, responds with
SdkError<DeleteNotificationError>
sourcepub fn delete_subscriber(&self) -> DeleteSubscriber
pub fn delete_subscriber(&self) -> DeleteSubscriber
Constructs a fluent builder for the DeleteSubscriber
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget whose subscriber you want to delete.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget whose subscriber you want to delete.
notification(Notification)
/set_notification(Option<Notification>)
:The notification whose subscriber you want to delete.
subscriber(Subscriber)
/set_subscriber(Option<Subscriber>)
:The subscriber that you want to delete.
- On success, responds with
DeleteSubscriberOutput
- On failure, responds with
SdkError<DeleteSubscriberError>
sourcepub fn describe_budget(&self) -> DescribeBudget
pub fn describe_budget(&self) -> DescribeBudget
Constructs a fluent builder for the DescribeBudget
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget that you want a description of.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget that you want a description of.
- On success, responds with
DescribeBudgetOutput
with field(s):budget(Option<Budget>)
:The description of the budget.
- On failure, responds with
SdkError<DescribeBudgetError>
sourcepub fn describe_budget_action(&self) -> DescribeBudgetAction
pub fn describe_budget_action(&self) -> DescribeBudgetAction
Constructs a fluent builder for the DescribeBudgetAction
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(impl Into<String>)
/set_action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
- On success, responds with
DescribeBudgetActionOutput
with field(s):account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action(Option<Action>)
:A budget action resource.
- On failure, responds with
SdkError<DescribeBudgetActionError>
sourcepub fn describe_budget_action_histories(&self) -> DescribeBudgetActionHistories
pub fn describe_budget_action_histories(&self) -> DescribeBudgetActionHistories
Constructs a fluent builder for the DescribeBudgetActionHistories
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(impl Into<String>)
/set_action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
time_period(TimePeriod)
/set_time_period(Option<TimePeriod>)
:The period of time that’s covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
max_results(i32)
/set_max_results(Option<i32>)
:An integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A generic string.
- On success, responds with
DescribeBudgetActionHistoriesOutput
with field(s):action_histories(Option<Vec<ActionHistory>>)
:The historical record of the budget action resource.
next_token(Option<String>)
:A generic string.
- On failure, responds with
SdkError<DescribeBudgetActionHistoriesError>
sourcepub fn describe_budget_actions_for_account(
&self
) -> DescribeBudgetActionsForAccount
pub fn describe_budget_actions_for_account(
&self
) -> DescribeBudgetActionsForAccount
Constructs a fluent builder for the DescribeBudgetActionsForAccount
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
max_results(i32)
/set_max_results(Option<i32>)
:An integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A generic string.
- On success, responds with
DescribeBudgetActionsForAccountOutput
with field(s):actions(Option<Vec<Action>>)
:A list of the budget action resources information.
next_token(Option<String>)
:A generic string.
- On failure, responds with
SdkError<DescribeBudgetActionsForAccountError>
sourcepub fn describe_budget_actions_for_budget(
&self
) -> DescribeBudgetActionsForBudget
pub fn describe_budget_actions_for_budget(
&self
) -> DescribeBudgetActionsForBudget
Constructs a fluent builder for the DescribeBudgetActionsForBudget
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
max_results(i32)
/set_max_results(Option<i32>)
:An integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A generic string.
- On success, responds with
DescribeBudgetActionsForBudgetOutput
with field(s):actions(Option<Vec<Action>>)
:A list of the budget action resources information.
next_token(Option<String>)
:A generic string.
- On failure, responds with
SdkError<DescribeBudgetActionsForBudgetError>
sourcepub fn describe_budget_notifications_for_account(
&self
) -> DescribeBudgetNotificationsForAccount
pub fn describe_budget_notifications_for_account(
&self
) -> DescribeBudgetNotificationsForAccount
Constructs a fluent builder for the DescribeBudgetNotificationsForAccount
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
max_results(i32)
/set_max_results(Option<i32>)
:An integer that shows how many budget name entries a paginated response contains.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A generic string.
- On success, responds with
DescribeBudgetNotificationsForAccountOutput
with field(s):budget_notifications_for_account(Option<Vec<BudgetNotificationsForAccount>>)
:A list of budget names and associated notifications for an account.
next_token(Option<String>)
:A generic string.
- On failure, responds with
SdkError<DescribeBudgetNotificationsForAccountError>
sourcepub fn describe_budget_performance_history(
&self
) -> DescribeBudgetPerformanceHistory
pub fn describe_budget_performance_history(
&self
) -> DescribeBudgetPerformanceHistory
Constructs a fluent builder for the DescribeBudgetPerformanceHistory
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
time_period(TimePeriod)
/set_time_period(Option<TimePeriod>)
:Retrieves how often the budget went into an
ALARM
state for the specified time period.max_results(i32)
/set_max_results(Option<i32>)
:An integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A generic string.
- On success, responds with
DescribeBudgetPerformanceHistoryOutput
with field(s):budget_performance_history(Option<BudgetPerformanceHistory>)
:The history of how often the budget has gone into an
ALARM
state.For
DAILY
budgets, the history saves the state of the budget for the last 60 days. ForMONTHLY
budgets, the history saves the state of the budget for the current month plus the last 12 months. ForQUARTERLY
budgets, the history saves the state of the budget for the last four quarters.next_token(Option<String>)
:A generic string.
- On failure, responds with
SdkError<DescribeBudgetPerformanceHistoryError>
sourcepub fn describe_budgets(&self) -> DescribeBudgets
pub fn describe_budgets(&self) -> DescribeBudgets
Constructs a fluent builder for the DescribeBudgets
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budgets that you want descriptions of.max_results(i32)
/set_max_results(Option<i32>)
:An optional integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
- On success, responds with
DescribeBudgetsOutput
with field(s):budgets(Option<Vec<Budget>>)
:A list of budgets.
next_token(Option<String>)
:The pagination token in the service response that indicates the next set of results that you can retrieve.
- On failure, responds with
SdkError<DescribeBudgetsError>
sourcepub fn describe_notifications_for_budget(
&self
) -> DescribeNotificationsForBudget
pub fn describe_notifications_for_budget(
&self
) -> DescribeNotificationsForBudget
Constructs a fluent builder for the DescribeNotificationsForBudget
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget whose notifications you want descriptions of.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget whose notifications you want descriptions of.
max_results(i32)
/set_max_results(Option<i32>)
:An optional integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
- On success, responds with
DescribeNotificationsForBudgetOutput
with field(s):notifications(Option<Vec<Notification>>)
:A list of notifications that are associated with a budget.
next_token(Option<String>)
:The pagination token in the service response that indicates the next set of results that you can retrieve.
- On failure, responds with
SdkError<DescribeNotificationsForBudgetError>
sourcepub fn describe_subscribers_for_notification(
&self
) -> DescribeSubscribersForNotification
pub fn describe_subscribers_for_notification(
&self
) -> DescribeSubscribersForNotification
Constructs a fluent builder for the DescribeSubscribersForNotification
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget whose subscribers you want descriptions of.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget whose subscribers you want descriptions of.
notification(Notification)
/set_notification(Option<Notification>)
:The notification whose subscribers you want to list.
max_results(i32)
/set_max_results(Option<i32>)
:An optional integer that represents how many entries a paginated response contains. The maximum is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
- On success, responds with
DescribeSubscribersForNotificationOutput
with field(s):subscribers(Option<Vec<Subscriber>>)
:A list of subscribers that are associated with a notification.
next_token(Option<String>)
:The pagination token in the service response that indicates the next set of results that you can retrieve.
- On failure, responds with
SdkError<DescribeSubscribersForNotificationError>
sourcepub fn execute_budget_action(&self) -> ExecuteBudgetAction
pub fn execute_budget_action(&self) -> ExecuteBudgetAction
Constructs a fluent builder for the ExecuteBudgetAction
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(impl Into<String>)
/set_action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
execution_type(ExecutionType)
/set_execution_type(Option<ExecutionType>)
:The type of execution.
- On success, responds with
ExecuteBudgetActionOutput
with field(s):account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
execution_type(Option<ExecutionType>)
:The type of execution.
- On failure, responds with
SdkError<ExecuteBudgetActionError>
sourcepub fn update_budget(&self) -> UpdateBudget
pub fn update_budget(&self) -> UpdateBudget
Constructs a fluent builder for the UpdateBudget
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget that you want to update.new_budget(Budget)
/set_new_budget(Option<Budget>)
:The budget that you want to update your budget to.
- On success, responds with
UpdateBudgetOutput
- On failure, responds with
SdkError<UpdateBudgetError>
sourcepub fn update_budget_action(&self) -> UpdateBudgetAction
pub fn update_budget_action(&self) -> UpdateBudgetAction
Constructs a fluent builder for the UpdateBudgetAction
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
action_id(impl Into<String>)
/set_action_id(Option<String>)
:A system-generated universally unique identifier (UUID) for the action.
notification_type(NotificationType)
/set_notification_type(Option<NotificationType>)
:The type of a notification. It must be ACTUAL or FORECASTED.
action_threshold(ActionThreshold)
/set_action_threshold(Option<ActionThreshold>)
:The trigger threshold of the action.
definition(Definition)
/set_definition(Option<Definition>)
:Specifies all of the type-specific parameters.
execution_role_arn(impl Into<String>)
/set_execution_role_arn(Option<String>)
:The role passed for action execution and reversion. Roles and actions must be in the same account.
approval_model(ApprovalModel)
/set_approval_model(Option<ApprovalModel>)
:This specifies if the action needs manual or automatic approval.
subscribers(Vec<Subscriber>)
/set_subscribers(Option<Vec<Subscriber>>)
:A list of subscribers.
- On success, responds with
UpdateBudgetActionOutput
with field(s):account_id(Option<String>)
:The account ID of the user. It’s a 12-digit number.
budget_name(Option<String>)
:A string that represents the budget name. The “:” and “" characters aren’t allowed.
old_action(Option<Action>)
:The previous action resource information.
new_action(Option<Action>)
:The updated action resource information.
- On failure, responds with
SdkError<UpdateBudgetActionError>
sourcepub fn update_notification(&self) -> UpdateNotification
pub fn update_notification(&self) -> UpdateNotification
Constructs a fluent builder for the UpdateNotification
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget whose notification you want to update.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget whose notification you want to update.
old_notification(Notification)
/set_old_notification(Option<Notification>)
:The previous notification that is associated with a budget.
new_notification(Notification)
/set_new_notification(Option<Notification>)
:The updated notification to be associated with a budget.
- On success, responds with
UpdateNotificationOutput
- On failure, responds with
SdkError<UpdateNotificationError>
sourcepub fn update_subscriber(&self) -> UpdateSubscriber
pub fn update_subscriber(&self) -> UpdateSubscriber
Constructs a fluent builder for the UpdateSubscriber
operation.
- The fluent builder is configurable:
account_id(impl Into<String>)
/set_account_id(Option<String>)
:The
accountId
that is associated with the budget whose subscriber you want to update.budget_name(impl Into<String>)
/set_budget_name(Option<String>)
:The name of the budget whose subscriber you want to update.
notification(Notification)
/set_notification(Option<Notification>)
:The notification whose subscriber you want to update.
old_subscriber(Subscriber)
/set_old_subscriber(Option<Subscriber>)
:The previous subscriber that is associated with a budget notification.
new_subscriber(Subscriber)
/set_new_subscriber(Option<Subscriber>)
:The updated subscriber that is associated with a budget notification.
- On success, responds with
UpdateSubscriberOutput
- On failure, responds with
SdkError<UpdateSubscriberError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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> 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