pub struct AwsConfig {
pub region: String,
pub account_id: String,
pub role_arn: String,
pub region_auto_detected: bool,
}Fields§
§region: String§account_id: String§role_arn: String§region_auto_detected: boolImplementations§
Source§impl AwsConfig
impl AwsConfig
pub async fn new(region: Option<String>) -> Result<Self>
pub async fn new_with_timeout( region: Option<String>, timeout: Duration, ) -> Result<Self>
pub fn dummy(region: Option<String>) -> Self
pub async fn get_account_for_profile( profile: &str, region: &str, ) -> Result<String>
pub async fn s3_client(&self) -> Client
pub async fn s3_client_with_region(&self, region: &str) -> Client
pub async fn cloudformation_client(&self) -> Client
pub async fn cloudtrail_client(&self) -> Client
pub async fn lambda_client(&self) -> Client
pub async fn iam_client(&self) -> Client
pub async fn ecr_client(&self) -> Client
pub async fn ecr_public_client(&self) -> Client
pub async fn cloudwatch_client(&self) -> Client
pub async fn sqs_client(&self) -> Client
pub async fn cloudwatch_logs_client(&self) -> Client
pub async fn pipes_client(&self) -> Client
pub async fn ec2_client(&self) -> Client
pub async fn apigateway_client(&self) -> Client
pub async fn apigatewayv2_client(&self) -> Client
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AwsConfig
impl RefUnwindSafe for AwsConfig
impl Send for AwsConfig
impl Sync for AwsConfig
impl Unpin for AwsConfig
impl UnsafeUnpin for AwsConfig
impl UnwindSafe for AwsConfig
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
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>
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.