#[non_exhaustive]pub struct Options { /* private fields */ }Expand description
Configuration for the durable execution runtime.
Use Options::builder() to construct. All settings are optional;
defaults are suitable for standard Lambda deployments.
§Customizing the service client
The SDK calls the durable execution service through an
aws_sdk_lambda::Client and relies on that client’s own standard,
jittered retry for transient failures. To customize transport behavior,
retry policy, timeouts, endpoint, credentials, build the client (or an
aws_config::SdkConfig) yourself and supply it via
lambda_client (or
sdk_config). The SDK uses that client’s
configuration unchanged, with one addition: it adds the token
aws-durable-execution-sdk-rust/<version> to the User-Agent header of
each of its own requests, including requests sent through a client you
supply. <version> is the crate version.
To replace the transport itself, supply an
ExecutionClient via
execution_client. The SDK then
sends both durable execution service calls through it instead of the
Lambda client. LambdaExecutionClient::new
builds the default transport, so a custom transport can wrap it.
§Examples
use aws_durable_execution_sdk::Options;
let options = Options::builder()
.build()
.expect("valid default config");Implementations§
Source§impl Options
impl Options
Sourcepub fn builder() -> OptionsBuilder
pub fn builder() -> OptionsBuilder
Creates a new OptionsBuilder.
§Examples
use aws_durable_execution_sdk::Options;
let builder = Options::builder();
let opts = builder.build().expect("valid config");Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !UnwindSafe for Options
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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