Struct aws_sdk_arczonalshift::Client
source · pub struct Client { /* private fields */ }Expand description
Client for AWS ARC - Zonal Shift
Client for invoking operations on AWS ARC - Zonal Shift. Each operation on AWS ARC - Zonal Shift is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_arczonalshift::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_arczonalshift::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Implementations§
source§impl Client
impl Client
sourcepub fn cancel_zonal_shift(&self) -> CancelZonalShiftFluentBuilder
pub fn cancel_zonal_shift(&self) -> CancelZonalShiftFluentBuilder
Constructs a fluent builder for the CancelZonalShift operation.
- The fluent builder is configurable:
zonal_shift_id(impl Into<String>)/set_zonal_shift_id(Option<String>):
required: trueThe internally-generated identifier of a zonal shift.
- On success, responds with
CancelZonalShiftOutputwith field(s):zonal_shift_id(String):The identifier of a zonal shift.
resource_identifier(String):The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
away_from(String):The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
expiry_time(DateTime):The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you’re ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
start_time(DateTime):The time (UTC) when the zonal shift starts.
status(ZonalShiftStatus):A status for a zonal shift.
The
Statusfor a zonal shift can have one of the following values:-
ACTIVE: The zonal shift has been started and active.
-
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
-
CANCELED: The zonal shift was canceled.
-
comment(String):A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
- On failure, responds with
SdkError<CancelZonalShiftError>
source§impl Client
impl Client
sourcepub fn create_practice_run_configuration(
&self
) -> CreatePracticeRunConfigurationFluentBuilder
pub fn create_practice_run_configuration( &self ) -> CreatePracticeRunConfigurationFluentBuilder
Constructs a fluent builder for the CreatePracticeRunConfiguration operation.
- The fluent builder is configurable:
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: trueThe identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
blocked_windows(impl Into<String>)/set_blocked_windows(Option<Vec::<String>>):
required: falseOptionally, you can block Route 53 ARC from starting practice runs for specific windows of days and times.
The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.
For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example:
MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30.blocked_dates(impl Into<String>)/set_blocked_dates(Option<Vec::<String>>):
required: falseOptionally, you can block Route 53 ARC from starting practice runs for a resource on specific calendar dates.
The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.
For example, if you have an application update scheduled to launch on May 1, 2024, and you don’t want practice runs to shift traffic away at that time, you could set a blocked date for
2024-05-01.blocking_alarms(ControlCondition)/set_blocking_alarms(Option<Vec::<ControlCondition>>):
required: falseAn Amazon CloudWatch alarm that you can specify for zonal autoshift practice runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, and ends a practice run that’s in progress, when the alarm is in an
ALARMstate.outcome_alarms(ControlCondition)/set_outcome_alarms(Option<Vec::<ControlCondition>>):
required: trueThe outcome alarm for practice runs is a required Amazon CloudWatch alarm that you specify that ends a practice run when the alarm is in an
ALARMstate.Configure the alarm to monitor the health of your application when traffic is shifted away from an Availability Zone during each weekly practice run. You should configure the alarm to go into an
ALARMstate if your application is impacted by the zonal shift, and you want to stop the zonal shift, to let traffic for the resource return to the Availability Zone.
- On success, responds with
CreatePracticeRunConfigurationOutputwith field(s):arn(String):The Amazon Resource Name (ARN) of the resource that you configured the practice run for.
name(String):The name of the resource that you configured the practice run for.
zonal_autoshift_status(ZonalAutoshiftStatus):The status for zonal autoshift for a resource. When you specify the autoshift status as
ENABLED, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there’s an issue in the Availability Zone that could potentially affect customers.When you enable zonal autoshift, you must also configure practice runs for the resource.
practice_run_configuration(Option<PracticeRunConfiguration>):A practice run configuration for a resource. Configurations include the outcome alarm that you specify for practice runs, and, optionally, a blocking alarm and blocking dates and windows.
- On failure, responds with
SdkError<CreatePracticeRunConfigurationError>
source§impl Client
impl Client
sourcepub fn delete_practice_run_configuration(
&self
) -> DeletePracticeRunConfigurationFluentBuilder
pub fn delete_practice_run_configuration( &self ) -> DeletePracticeRunConfigurationFluentBuilder
Constructs a fluent builder for the DeletePracticeRunConfiguration operation.
- The fluent builder is configurable:
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: trueThe identifier for the resource that you want to delete the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
- On success, responds with
DeletePracticeRunConfigurationOutputwith field(s):arn(String):The Amazon Resource Name (ARN) of the resource that you deleted the practice run for.
name(String):The name of the resource that you deleted the practice run for.
zonal_autoshift_status(ZonalAutoshiftStatus):The status of zonal autoshift for the resource.
- On failure, responds with
SdkError<DeletePracticeRunConfigurationError>
source§impl Client
impl Client
sourcepub fn get_managed_resource(&self) -> GetManagedResourceFluentBuilder
pub fn get_managed_resource(&self) -> GetManagedResourceFluentBuilder
Constructs a fluent builder for the GetManagedResource operation.
- The fluent builder is configurable:
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: trueThe identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
- On success, responds with
GetManagedResourceOutputwith field(s):arn(Option<String>):The Amazon Resource Name (ARN) for the resource.
name(Option<String>):The name of the resource.
applied_weights(HashMap::<String, f32>):A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
zonal_shifts(Vec::<ZonalShiftInResource>):The zonal shifts that are currently active for a resource.
autoshifts(Option<Vec::<AutoshiftInResource>>):An array of the autoshifts that are active for the resource.
practice_run_configuration(Option<PracticeRunConfiguration>):The practice run configuration for zonal autoshift that’s associated with the resource.
zonal_autoshift_status(Option<ZonalAutoshiftStatus>):The status for zonal autoshift for a resource. When the autoshift status is
ENABLED, Amazon Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services determines that there’s an issue in the Availability Zone that could potentially affect customers.
- On failure, responds with
SdkError<GetManagedResourceError>
source§impl Client
impl Client
sourcepub fn list_autoshifts(&self) -> ListAutoshiftsFluentBuilder
pub fn list_autoshifts(&self) -> ListAutoshiftsFluentBuilder
Constructs a fluent builder for the ListAutoshifts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseSpecifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextTokenresponse to request the next page of results.status(AutoshiftExecutionStatus)/set_status(Option<AutoshiftExecutionStatus>):
required: falseThe status of the autoshift.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe number of objects that you want to return with this call.
- On success, responds with
ListAutoshiftsOutputwith field(s):items(Option<Vec::<AutoshiftSummary>>):The items in the response list.
next_token(Option<String>):Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextTokenresponse to request the next page of results.
- On failure, responds with
SdkError<ListAutoshiftsError>
source§impl Client
impl Client
sourcepub fn list_managed_resources(&self) -> ListManagedResourcesFluentBuilder
pub fn list_managed_resources(&self) -> ListManagedResourcesFluentBuilder
Constructs a fluent builder for the ListManagedResources operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseSpecifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextTokenresponse to request the next page of results.max_results(i32)/set_max_results(Option<i32>):
required: falseThe number of objects that you want to return with this call.
- On success, responds with
ListManagedResourcesOutputwith field(s):items(Vec::<ManagedResourceSummary>):The items in the response list.
next_token(Option<String>):Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextTokenresponse to request the next page of results.
- On failure, responds with
SdkError<ListManagedResourcesError>
source§impl Client
impl Client
sourcepub fn list_zonal_shifts(&self) -> ListZonalShiftsFluentBuilder
pub fn list_zonal_shifts(&self) -> ListZonalShiftsFluentBuilder
Constructs a fluent builder for the ListZonalShifts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseSpecifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextTokenresponse to request the next page of results.status(ZonalShiftStatus)/set_status(Option<ZonalShiftStatus>):
required: falseA status for a zonal shift.
The
Statusfor a zonal shift can have one of the following values:-
ACTIVE: The zonal shift has been started and active.
-
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
-
CANCELED: The zonal shift was canceled.
-
max_results(i32)/set_max_results(Option<i32>):
required: falseThe number of objects that you want to return with this call.
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: falseThe identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource Name (ARN) for the resource.
- On success, responds with
ListZonalShiftsOutputwith field(s):items(Option<Vec::<ZonalShiftSummary>>):The items in the response list.
next_token(Option<String>):Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextTokenresponse to request the next page of results.
- On failure, responds with
SdkError<ListZonalShiftsError>
source§impl Client
impl Client
sourcepub fn start_zonal_shift(&self) -> StartZonalShiftFluentBuilder
pub fn start_zonal_shift(&self) -> StartZonalShiftFluentBuilder
Constructs a fluent builder for the StartZonalShift operation.
- The fluent builder is configurable:
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: trueThe identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
away_from(impl Into<String>)/set_away_from(Option<String>):
required: trueThe Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
expires_in(impl Into<String>)/set_expires_in(Option<String>):
required: trueThe length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you’re ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
-
A lowercase letter m: To specify that the value is in minutes.
-
A lowercase letter h: To specify that the value is in hours.
For example:
20hmeans the zonal shift expires in 20 hours.120mmeans the zonal shift expires in 120 minutes (2 hours).-
comment(impl Into<String>)/set_comment(Option<String>):
required: trueA comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
- On success, responds with
StartZonalShiftOutputwith field(s):zonal_shift_id(String):The identifier of a zonal shift.
resource_identifier(String):The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
away_from(String):The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
expiry_time(DateTime):The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you’re ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
start_time(DateTime):The time (UTC) when the zonal shift starts.
status(ZonalShiftStatus):A status for a zonal shift.
The
Statusfor a zonal shift can have one of the following values:-
ACTIVE: The zonal shift has been started and active.
-
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
-
CANCELED: The zonal shift was canceled.
-
comment(String):A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
- On failure, responds with
SdkError<StartZonalShiftError>
source§impl Client
impl Client
sourcepub fn update_practice_run_configuration(
&self
) -> UpdatePracticeRunConfigurationFluentBuilder
pub fn update_practice_run_configuration( &self ) -> UpdatePracticeRunConfigurationFluentBuilder
Constructs a fluent builder for the UpdatePracticeRunConfiguration operation.
- The fluent builder is configurable:
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: trueThe identifier for the resource that you want to update the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
blocked_windows(impl Into<String>)/set_blocked_windows(Option<Vec::<String>>):
required: falseAdd, change, or remove windows of days and times for when you can, optionally, block Route 53 ARC from starting a practice run for a resource.
The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.
For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example:
MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30.blocked_dates(impl Into<String>)/set_blocked_dates(Option<Vec::<String>>):
required: falseAdd, change, or remove blocked dates for a practice run in zonal autoshift.
Optionally, you can block practice runs for specific calendar dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.
For example, if you have an application update scheduled to launch on May 1, 2024, and you don’t want practice runs to shift traffic away at that time, you could set a blocked date for
2024-05-01.blocking_alarms(ControlCondition)/set_blocking_alarms(Option<Vec::<ControlCondition>>):
required: falseAdd, change, or remove the Amazon CloudWatch alarm that you optionally specify as the blocking alarm for practice runs.
outcome_alarms(ControlCondition)/set_outcome_alarms(Option<Vec::<ControlCondition>>):
required: falseSpecify a new the Amazon CloudWatch alarm as the outcome alarm for practice runs.
- On success, responds with
UpdatePracticeRunConfigurationOutputwith field(s):arn(String):The Amazon Resource Name (ARN) of the resource that you updated the practice run for.
name(String):The name of the resource that you updated the practice run for.
zonal_autoshift_status(ZonalAutoshiftStatus):The zonal autoshift status for the resource that you updated the practice run for.
practice_run_configuration(Option<PracticeRunConfiguration>):The practice run configuration that was updated.
- On failure, responds with
SdkError<UpdatePracticeRunConfigurationError>
source§impl Client
impl Client
sourcepub fn update_zonal_autoshift_configuration(
&self
) -> UpdateZonalAutoshiftConfigurationFluentBuilder
pub fn update_zonal_autoshift_configuration( &self ) -> UpdateZonalAutoshiftConfigurationFluentBuilder
Constructs a fluent builder for the UpdateZonalAutoshiftConfiguration operation.
- The fluent builder is configurable:
resource_identifier(impl Into<String>)/set_resource_identifier(Option<String>):
required: trueThe identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
zonal_autoshift_status(ZonalAutoshiftStatus)/set_zonal_autoshift_status(Option<ZonalAutoshiftStatus>):
required: trueThe zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
- On success, responds with
UpdateZonalAutoshiftConfigurationOutputwith field(s):resource_identifier(String):The identifier for the resource that you updated the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
zonal_autoshift_status(ZonalAutoshiftStatus):The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
- On failure, responds with
SdkError<UpdateZonalAutoshiftConfigurationError>
source§impl Client
impl Client
sourcepub fn update_zonal_shift(&self) -> UpdateZonalShiftFluentBuilder
pub fn update_zonal_shift(&self) -> UpdateZonalShiftFluentBuilder
Constructs a fluent builder for the UpdateZonalShift operation.
- The fluent builder is configurable:
zonal_shift_id(impl Into<String>)/set_zonal_shift_id(Option<String>):
required: trueThe identifier of a zonal shift.
comment(impl Into<String>)/set_comment(Option<String>):
required: falseA comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
expires_in(impl Into<String>)/set_expires_in(Option<String>):
required: falseThe length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you’re ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
-
A lowercase letter m: To specify that the value is in minutes.
-
A lowercase letter h: To specify that the value is in hours.
For example:
20hmeans the zonal shift expires in 20 hours.120mmeans the zonal shift expires in 120 minutes (2 hours).-
- On success, responds with
UpdateZonalShiftOutputwith field(s):zonal_shift_id(String):The identifier of a zonal shift.
resource_identifier(String):The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
away_from(String):The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
expiry_time(DateTime):The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you’re ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
start_time(DateTime):The time (UTC) when the zonal shift starts.
status(ZonalShiftStatus):A status for a zonal shift.
The
Statusfor a zonal shift can have one of the following values:-
ACTIVE: The zonal shift has been started and active.
-
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
-
CANCELED: The zonal shift was canceled.
-
comment(String):A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
- On failure, responds with
SdkError<UpdateZonalShiftError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more