pub struct AwsClient {
config: SdkConfig,
}
Expand description
Main AWS client that manages shared configuration and clients
This client provides a unified way to access AWS services with shared configuration and client management for better performance and resource usage.
Fields§
§config: SdkConfig
Implementations§
Source§impl AwsClient
impl AwsClient
Sourcepub async fn new() -> Result<Self, Error>
pub async fn new() -> Result<Self, Error>
Create a new AWS client with default configuration
§Returns
Returns a new AwsClient instance, or an error if the operation fails.
Sourcepub fn with_config(config: SdkConfig) -> Self
pub fn with_config(config: SdkConfig) -> Self
Sourcepub fn sqs(&self) -> SqsService
pub fn sqs(&self) -> SqsService
Create an SQS service using the shared configuration
§Returns
Returns a new SqsService instance using the shared configuration.
Sourcepub fn ssm(&self) -> SsmService
pub fn ssm(&self) -> SsmService
Create an SSM service using the shared configuration
§Returns
Returns a new SsmService instance using the shared configuration.
Auto Trait Implementations§
impl Freeze for AwsClient
impl !RefUnwindSafe for AwsClient
impl Send for AwsClient
impl Sync for AwsClient
impl Unpin for AwsClient
impl !UnwindSafe for AwsClient
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.