pub struct AwsConfig {
pub region: String,
pub account_id: String,
pub role_arn: String,
pub region_auto_detected: bool,
/* private fields */
}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 fn s3_client(&self) -> Client
pub async fn s3_client_with_region(&self, region: &str) -> Client
pub fn cloudformation_client(&self) -> Client
pub fn cloudtrail_client(&self) -> Client
pub fn lambda_client(&self) -> Client
pub fn iam_client(&self) -> Client
pub fn ecr_client(&self) -> Client
pub fn ecr_public_client(&self) -> Client
pub fn cloudwatch_client(&self) -> Client
pub fn sqs_client(&self) -> Client
pub fn cloudwatch_logs_client(&self) -> Client
pub fn pipes_client(&self) -> Client
pub fn ec2_client(&self) -> Client
pub fn apigateway_client(&self) -> Client
pub fn apigatewayv2_client(&self) -> Client
pub fn alarms_client(&self) -> Client
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AwsConfig
impl !UnwindSafe for AwsConfig
impl Freeze for AwsConfig
impl Send for AwsConfig
impl Sync for AwsConfig
impl Unpin for AwsConfig
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.