pub struct LambdaDurableServiceClient { /* private fields */ }Expand description
Lambda-based implementation of the DurableServiceClient.
This client uses the AWS Lambda REST APIs (CheckpointDurableExecution and GetDurableExecutionState) to communicate with the durable execution service.
Implementations§
Source§impl LambdaDurableServiceClient
impl LambdaDurableServiceClient
Sourcepub async fn from_env() -> Result<Self, DurableError>
pub async fn from_env() -> Result<Self, DurableError>
Creates a new LambdaDurableServiceClient from AWS config.
§Errors
Returns DurableError::Configuration if no credentials provider is configured.
Sourcepub fn from_aws_config(aws_config: &SdkConfig) -> Result<Self, DurableError>
pub fn from_aws_config(aws_config: &SdkConfig) -> Result<Self, DurableError>
Creates a new LambdaDurableServiceClient from AWS SDK config.
§Errors
Returns DurableError::Configuration if no credentials provider is configured.
Sourcepub fn from_aws_config_with_user_agent(
aws_config: &SdkConfig,
sdk_name: &str,
sdk_version: &str,
) -> Result<Self, DurableError>
pub fn from_aws_config_with_user_agent( aws_config: &SdkConfig, sdk_name: &str, sdk_version: &str, ) -> Result<Self, DurableError>
Creates a new LambdaDurableServiceClient from AWS SDK config with a custom user-agent string appended to HTTP requests for SDK identification.
§Errors
Returns DurableError::Configuration if no credentials provider is configured.
Sourcepub fn with_config(
credentials_provider: Arc<dyn ProvideCredentials>,
config: LambdaClientConfig,
) -> Self
pub fn with_config( credentials_provider: Arc<dyn ProvideCredentials>, config: LambdaClientConfig, ) -> Self
Creates a new LambdaDurableServiceClient with custom configuration.
Trait Implementations§
Source§impl DurableServiceClient for LambdaDurableServiceClient
impl DurableServiceClient for LambdaDurableServiceClient
Source§fn checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_execution_arn: &'life1 str,
checkpoint_token: &'life2 str,
operations: Vec<OperationUpdate>,
) -> Pin<Box<dyn Future<Output = Result<CheckpointResponse, DurableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_execution_arn: &'life1 str,
checkpoint_token: &'life2 str,
operations: Vec<OperationUpdate>,
) -> Pin<Box<dyn Future<Output = Result<CheckpointResponse, DurableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn get_operations<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_execution_arn: &'life1 str,
next_marker: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<GetOperationsResponse, DurableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_operations<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
durable_execution_arn: &'life1 str,
next_marker: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<GetOperationsResponse, DurableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for LambdaDurableServiceClient
impl !RefUnwindSafe for LambdaDurableServiceClient
impl Send for LambdaDurableServiceClient
impl Sync for LambdaDurableServiceClient
impl Unpin for LambdaDurableServiceClient
impl UnsafeUnpin for LambdaDurableServiceClient
impl !UnwindSafe for LambdaDurableServiceClient
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