id
stringlengths
22
133
text
stringlengths
40
40.2k
arch
stringclasses
1 value
syntax
stringclasses
1 value
kind
stringclasses
4 values
repo
stringclasses
27 values
path
stringlengths
5
116
license
stringclasses
6 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
16 values
source_url
stringlengths
85
196
line_start
int64
1
4.28k
line_end
int64
4
4.31k
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
#[non_exhaustive] InvalidCredentialSource { /// The name of the profile profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
/// Invalid SSO configuration #[non_exhaustive] InvalidSsoConfig { /// The name of the profile that the error originates in profile: String, /// Error message message: Cow<'static, str>, }, /// Profile is intended to be used in the token provider chain rather /// tha...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
f, "profile formed an infinite loop. first we loaded {:?}, \ then attempted to reload {}", profiles, next ), ProfileFileError::MissingCredentialSource { profile, message } => { write!(f, "missing credential source in `{}`: {}", profile,...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
} ProfileFileError::TokenProviderConfig { .. } => { // TODO(https://github.com/awslabs/aws-sdk-rust/issues/703): Update error message once token support is added write!( f, "selected profile will resolve an access token instead of crede...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
self.provider_config = Some(provider_config.clone()); self } /// Adds a custom credential source /// /// # Examples /// /// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
/// Override the profile name used by the [`ProfileFileCredentialsProvider`] pub fn profile_name(mut self, profile_name: impl Into<String>) -> Self { self.profile_override = Some(profile_name.into()); self } /// Set the profile file that should be used by the [`ProfileFileCredentialsProvide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
named_providers .entry("EcsContainer".into()) .or_insert_with(|| { Arc::new( crate::ecs::EcsCredentialsProvider::builder() .configure(&conf) .build(), ) }); let factory = exec:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:14
} impl ChainProvider { async fn provide_credentials(&self) -> Result<Credentials, CredentialsError> { // Can't borrow `self` across an await point, or else we lose `Send` on the returned future let config = self.config.clone(); let chain = self.chain.clone(); if let Some(chain) = c...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:15
Ok(creds) } else { Err(CredentialsError::not_loaded_no_source()) } } } #[cfg(test)] mod test { use crate::profile::credentials::Builder; use aws_credential_types::provider::ProvideCredentials; macro_rules! make_test { ($name: ident) => { #[tokio::test] ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:16
// TODO(https://github.com/awslabs/aws-sdk-rust/issues/1117) This test is disabled on Windows because it uses Unix-style paths #[cfg(all(feature = "credentials-process", not(windows)))] make_test!(credential_process); // TODO(https://github.com/awslabs/aws-sdk-rust/issues/1117) This test is disabled on Wind...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:17
impl HttpConnector for ClientInner { fn call(&self, request: HttpRequest) -> HttpConnectorFuture { assert_eq!( self.expected_token, request.headers().get("x-amz-sso_bearer_token").unwrap() ); HttpConnectorFuture::ready(O...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:18
sso_account_id = 012345678901 sso_role_name = SampleRole region = us-east-1 [sso-session dev] sso_region = us-east-1 sso_start_url = https://d-abc123.awsapps.com/start "# .to_vec(), ); map.insert( "/home/.aws/sso/cache/34c6fceca75e456f25e7e99531e2...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:19
r#" { "accessToken": "NEW!!secret-access-token", "expiresAt": "2199-11-14T04:05:45Z", "refreshToken": "secret-refresh-token", "clientId": "ABCDEFG323242423121312312312312312", "clientSecret": "ABCDE123", "registr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
3a190ce6ed80986955b6820a8d32d356ff65901d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3a190ce6ed80986955b6820a8d32d356ff65901d/sdk/aws-config/src/profile/credentials.rs
721
756
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Profile File Based Credential Providers //! //! Profile file based providers combine two pieces: //! //! 1. Parsing and resolution of the assume role chain //! 2. A user-modifiable hashmap of provide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:4
/// ### Loading Credentials from SSO /// ```ini /// [default] /// sso_start_url = https://example.com/start /// sso_region = us-east-2 /// sso_account_id = 123456789011 /// sso_role_name = readOnly /// region = us-west-2 /// ``` /// /// SSO can also be used as a source profile for assume role chains. /// #[doc = includ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
then attempted to reload {}", profiles, next ), ProfileFileError::MissingCredentialSource { profile, message } => { write!(f, "missing credential source in `{}`: {}", profile, message) } ProfileFileError::InvalidCredentialSource { profile, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
// TODO(https://github.com/awslabs/aws-sdk-rust/issues/703): Update error message once token support is added write!( f, "selected profile will resolve an access token instead of credentials \ since it doesn't have `sso_account_id` and `sso_ro...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
/// Adds a custom credential source /// /// # Examples /// /// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
self.profile_override = Some(profile_name.into()); self } /// Set the profile file that should be used by the [`ProfileFileCredentialsProvider`] pub fn profile_files(mut self, profile_files: ProfileFiles) -> Self { self.profile_files = Some(profile_files); self } /// Builds...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
Arc::new( crate::ecs::EcsCredentialsProvider::builder() .configure(&conf) .build(), ) }); let factory = exec::named::NamedProviderFactory::new(named_providers); ProfileFileCredentialsProvider { c...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:14
// Can't borrow `self` across an await point, or else we lose `Send` on the returned future let config = self.config.clone(); let chain = self.chain.clone(); if let Some(chain) = chain { let mut creds = match chain .base() .provide_credentials() ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:15
} } #[cfg(test)] mod test { use crate::profile::credentials::Builder; use aws_credential_types::provider::ProvideCredentials; macro_rules! make_test { ($name: ident) => { #[tokio::test] async fn $name() { let _ = crate::test_case::TestEnvironment::from_dir( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:16
#[cfg(all(feature = "credentials-process", not(windows)))] make_test!(credential_process_failure); #[cfg(feature = "credentials-process")] make_test!(credential_process_invalid); #[cfg(feature = "sso")] make_test!(sso_credentials); #[cfg(feature = "sso")] make_test!(sso_token); } #[cfg(all(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:17
request.headers().get("x-amz-sso_bearer_token").unwrap() ); HttpConnectorFuture::ready(Ok(HttpResponse::new( 200.try_into().unwrap(), SdkBody::from("{\"roleCredentials\":{\"accessKeyId\":\"ASIARTESTID\",\"secretAccessKey\":\"TESTSECRETKEY\",\"sessi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:18
[sso-session dev] sso_region = us-east-1 sso_start_url = https://d-abc123.awsapps.com/start "# .to_vec(), ); map.insert( "/home/.aws/sso/cache/34c6fceca75e456f25e7e99531e2425c6c1de443.json".to_string(), br#" { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:19
"refreshToken": "secret-refresh-token", "clientId": "ABCDEFG323242423121312312312312312", "clientSecret": "ABCDE123", "registrationExpiresAt": "2199-03-06T19:53:17Z", "region": "us-east-1", "startUrl": "https://d-abc123.awsapps.com/start" ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-config/src/profile/credentials.rs
721
752
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:15
} } #[cfg(test)] mod test { use crate::profile::credentials::Builder; use aws_credential_types::provider::ProvideCredentials; macro_rules! make_test { ($name: ident) => { #[tokio::test] async fn $name() { let _ = crate::test_case::TestEnvironment::from_dir( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
7fb6328ae6e67ca844aeab25e1760afd05c54aed
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/7fb6328ae6e67ca844aeab25e1760afd05c54aed/sdk/aws-config/src/profile/credentials.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:16
#[cfg(feature = "credentials-process")] make_test!(credential_process_invalid); #[cfg(feature = "sso")] make_test!(sso_credentials); #[cfg(feature = "sso")] make_test!(sso_token); } #[cfg(all(test, feature = "sso"))] mod sso_tests { use crate::{profile::credentials::Builder, provider_config::Pr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
7fb6328ae6e67ca844aeab25e1760afd05c54aed
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/7fb6328ae6e67ca844aeab25e1760afd05c54aed/sdk/aws-config/src/profile/credentials.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:17
SdkBody::from("{\"roleCredentials\":{\"accessKeyId\":\"ASIARTESTID\",\"secretAccessKey\":\"TESTSECRETKEY\",\"sessionToken\":\"TESTSESSIONTOKEN\",\"expiration\": 1651516560000}}"), ))) } } #[derive(Debug)] struct Client { inner: SharedHttpConnector, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
7fb6328ae6e67ca844aeab25e1760afd05c54aed
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/7fb6328ae6e67ca844aeab25e1760afd05c54aed/sdk/aws-config/src/profile/credentials.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:18
.to_vec(), ); map.insert( "/home/.aws/sso/cache/34c6fceca75e456f25e7e99531e2425c6c1de443.json".to_string(), br#" { "accessToken": "secret-access-token", "expiresAt": "2199-11-14T04:05:45Z", ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
7fb6328ae6e67ca844aeab25e1760afd05c54aed
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/7fb6328ae6e67ca844aeab25e1760afd05c54aed/sdk/aws-config/src/profile/credentials.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:19
"region": "us-east-1", "startUrl": "https://d-abc123.awsapps.com/start" } "#, ) .await .unwrap(); // Loading credentials will still work since the SSOTokenProvider should have only // been created once, and thus, the correct token is still...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
7fb6328ae6e67ca844aeab25e1760afd05c54aed
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/7fb6328ae6e67ca844aeab25e1760afd05c54aed/sdk/aws-config/src/profile/credentials.rs
721
748
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Profile File Based Credential Providers //! //! Profile file based providers combine two pieces: //! //! 1. Parsing and resolution of the assume role chain //! 2. A user-modifiable hashmap of provide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:14
// Can't borrow `self` across an await point, or else we lose `Send` on the returned future let config = self.config.clone(); let chain = self.chain.clone(); if let Some(chain) = chain { let mut creds = match chain .base() .provide_credentials() ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:15
} } #[cfg(test)] mod test { use crate::profile::credentials::Builder; use crate::test_case::TestEnvironment; use aws_credential_types::provider::ProvideCredentials; macro_rules! make_test { ($name: ident) => { #[tokio::test] async fn $name() { let _ = Te...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:16
make_test!(credential_process_failure); #[cfg(feature = "credentials-process")] make_test!(credential_process_invalid); #[cfg(feature = "sso")] make_test!(sso_credentials); #[cfg(feature = "sso")] make_test!(sso_token); } #[cfg(all(test, feature = "sso"))] mod sso_tests { use crate::{profil...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:17
200.try_into().unwrap(), SdkBody::from("{\"roleCredentials\":{\"accessKeyId\":\"ASIARTESTID\",\"secretAccessKey\":\"TESTSECRETKEY\",\"sessionToken\":\"TESTSESSIONTOKEN\",\"expiration\": 1651516560000}}"), ))) } } #[derive(Debug)] struct Client { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:18
"# .to_vec(), ); map.insert( "/home/.aws/sso/cache/34c6fceca75e456f25e7e99531e2425c6c1de443.json".to_string(), br#" { "accessToken": "secret-access-token", "expiresAt": "2199-11-14T04:05:45Z",...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:19
"registrationExpiresAt": "2199-03-06T19:53:17Z", "region": "us-east-1", "startUrl": "https://d-abc123.awsapps.com/start" } "#, ) .await .unwrap(); // Loading credentials will still work since the SSOTokenProvider should have only ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
1cf6a955b2b12598882b206939bea1ba4f1fa238
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/1cf6a955b2b12598882b206939bea1ba4f1fa238/sdk/aws-config/src/profile/credentials.rs
721
749
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:14
// Can't borrow `self` across an await point, or else we lose `Send` on the returned future let config = self.config.clone(); let chain = self.chain.clone(); if let Some(chain) = chain { let mut creds = match chain .base() .provide_credentials() ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-config/src/profile/credentials.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:15
} } #[cfg(test)] mod test { use crate::profile::credentials::Builder; use crate::test_case::TestEnvironment; macro_rules! make_test { ($name: ident) => { #[tokio::test] async fn $name() { TestEnvironment::from_dir(concat!( "./test-data/pr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-config/src/profile/credentials.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:16
} #[cfg(all(test, feature = "sso"))] mod sso_tests { use crate::{profile::credentials::Builder, provider_config::ProviderConfig}; use aws_credential_types::provider::ProvideCredentials; use aws_sdk_sso::config::RuntimeComponents; use aws_smithy_runtime_api::client::{ http::{ HttpCli...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-config/src/profile/credentials.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:17
inner: SharedHttpConnector, } impl Client { fn new(expected_token: &'static str) -> Self { Self { inner: SharedHttpConnector::new(ClientInner { expected_token }), } } } impl HttpClient for Client { fn...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-config/src/profile/credentials.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:18
"accessToken": "secret-access-token", "expiresAt": "2199-11-14T04:05:45Z", "refreshToken": "secret-refresh-token", "clientId": "ABCDEFG323242423121312312312312312", "clientSecret": "ABCDE123", "registrationExpiresAt": "2...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-config/src/profile/credentials.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:19
.unwrap(); // Loading credentials will still work since the SSOTokenProvider should have only // been created once, and thus, the correct token is still in an in-memory cache. let second_creds = provider .provide_credentials() .await .expect("used cached toke...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-config/src/profile/credentials.rs
721
742
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Profile File Based Credential Providers //! //! Profile file based providers combine two pieces: //! //! 1. Parsing and resolution of the assume role chain //! 2. A user-modifiable hashmap of provide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:4
/// [default] /// credential_process = /opt/bin/awscreds-custom --username helen /// ``` /// /// An external process can be used to provide credentials. /// /// ### Loading Credentials from SSO /// ```ini /// [default] /// sso_start_url = https://example.com/start /// sso_region = us-east-2 /// sso_account_id = 1234567...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:5
_ => CredentialsError::invalid_configuration(format!( "ProfileFile provider could not be built: {}", &err )), })?; let mut creds = match inner_provider .base() .provide_credentials() .instrument(tracing::debu...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:6
/// An Error building a Credential source from an AWS Profile #[derive(Debug)] #[non_exhaustive] pub enum ProfileFileError { /// The profile was not a valid AWS profile #[non_exhaustive] InvalidProfile(ProfileFileLoadError), /// No profiles existed (the profile was empty) #[non_exhaustive] NoPr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name of the profile profile: String, /// Error message message: Cow<'sta...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
/// The name of the profile that the error originates in profile: String, /// Error message message: Cow<'static, str>, }, /// Profile is intended to be used in the token provider chain rather /// than in the credentials chain. #[non_exhaustive] TokenProviderConfig {}, } im...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
profiles, next ), ProfileFileError::MissingCredentialSource { profile, message } => { write!(f, "missing credential source in `{}`: {}", profile, message) } ProfileFileError::InvalidCredentialSource { profile, message } => { write!(f, "inva...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
write!( f, "selected profile will resolve an access token instead of credentials \ since it doesn't have `sso_account_id` and `sso_role_name` set. Access token \ support for services such as Code Catalyst hasn't been implemented yet and i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
/// Adds a custom credential source /// /// # Examples /// /// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
self } /// Set the profile file that should be used by the [`ProfileFileCredentialsProvider`] pub fn profile_files(mut self, profile_files: ProfileFiles) -> Self { self.profile_files = Some(profile_files); self } /// Builds a [`ProfileFileCredentialsProvider`] pub fn build(self...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
crate::ecs::EcsCredentialsProvider::builder() .configure(&conf) .build(), ) }); let factory = exec::named::NamedProviderFactory::new(named_providers); ProfileFileCredentialsProvider { factory, sdk_config...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:14
)) .await .unwrap() .execute(|conf| async move { Builder::default().configure(&conf).build() }) .await } }; } make_test!(e2e_assume_role); make_test!(e2e_fips_and_dual_stack_sts); make_test!(empty_config); make_test...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
837a5f3b33fda3d61f12eefa86938b1fada7dd68
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/837a5f3b33fda3d61f12eefa86938b1fada7dd68/sdk/aws-config/src/profile/credentials.rs
521
546
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name of the profile profile: String, /// Error message message: Cow<'sta...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
match self { ProfileFileError::InvalidProfile(err) => Some(err), _ => None, } } } impl Display for ProfileFileError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { match self { ProfileFileError::InvalidProfile(err) => { write!(f, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
let message = message.as_deref().unwrap_or_default(); write!( f, "This behavior requires following cargo feature(s) enabled: {feature}. {message}", ) } } } } /// Builder for [`ProfileFileCredentialsProvider`] #[derive(Debug...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
/// # Examples /// /// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvider { /// async fn load_credentials(&self)...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
/// Set the profile file that should be used by the [`ProfileFileCredentialsProvider`] pub fn profile_files(mut self, profile_files: ProfileFiles) -> Self { self.profile_files = Some(profile_files); self } /// Builds a [`ProfileFileCredentialsProvider`] pub fn build(self) -> ProfileFile...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
.build(), ) }); let factory = exec::named::NamedProviderFactory::new(named_providers); ProfileFileCredentialsProvider { factory, sdk_config: conf.client_config(), provider_config: conf, } } } async fn build_provider_chain( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
.unwrap() .execute(|conf| async move { Builder::default().configure(&conf).build() }) .await } }; } make_test!(e2e_assume_role); make_test!(e2e_fips_and_dual_stack_sts); make_test!(empty_config); make_test!(retry_on_error); make_test!(invalid_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
c84a2ea7fe86af81214e389b24844b0be5474808
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/c84a2ea7fe86af81214e389b24844b0be5474808/sdk/aws-config/src/profile/credentials.rs
481
500
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name of the profile profile: String, /// Error message message: Cow<'sta...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
_ => None, } } } impl Display for ProfileFileError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { match self { ProfileFileError::InvalidProfile(err) => { write!(f, "invalid profile: {}", err) } ProfileFileError::CredentialLoop { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
"This behavior requires following cargo feature(s) enabled: {message}", ) } } } } /// Builder for [`ProfileFileCredentialsProvider`] #[derive(Debug, Default)] pub struct Builder { provider_config: Option<ProviderConfig>, profile_override: Option<String>, profile_file...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
/// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvider { /// async fn load_credentials(&self) -> provider::Result { /// todo!(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
self.profile_files = Some(profile_files); self } /// Builds a [`ProfileFileCredentialsProvider`] pub fn build(self) -> ProfileFileCredentialsProvider { let build_span = tracing::debug_span!("build_profile_provider"); let _enter = build_span.enter(); let conf = self ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
let factory = exec::named::NamedProviderFactory::new(named_providers); ProfileFileCredentialsProvider { factory, sdk_config: conf.client_config(), provider_config: conf, } } } async fn build_provider_chain( provider_config: &ProviderConfig, factory: &exe...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
441
494
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
} }; } make_test!(e2e_assume_role); make_test!(e2e_fips_and_dual_stack_sts); make_test!(empty_config); make_test!(retry_on_error); make_test!(invalid_config); make_test!(region_override); make_test!(credential_process); make_test!(credential_process_failure); make_test!(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-config/src/profile/credentials.rs
481
494
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Profile File Based Credential Providers //! //! Profile file based providers combine two pieces: //! //! 1. Parsing and resolution of the assume role chain //! 2. A user-modifiable hashmap of provide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:4
/// ### Credentials loaded from an external process /// ```ini /// [default] /// credential_process = /opt/bin/awscreds-custom --username helen /// ``` /// /// An external process can be used to provide credentials. /// /// ### Loading Credentials from SSO /// ```ini /// [default] /// sso_start_url = https://example.co...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:5
CredentialsError::not_loaded(err) } _ => CredentialsError::invalid_configuration(format!( "ProfileFile provider could not be built: {}", &err )), })?; let mut creds = match inner_provider .base() ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:6
} /// An Error building a Credential source from an AWS Profile #[derive(Debug)] #[non_exhaustive] pub enum ProfileFileError { /// The profile was not a valid AWS profile #[non_exhaustive] InvalidProfile(ProfileFileLoadError), /// No profiles existed (the profile was empty) #[non_exhaustive] N...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
InvalidCredentialSource { /// The name of the profile profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name of the profile ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
match self { ProfileFileError::InvalidProfile(err) => Some(err), _ => None, } } } impl Display for ProfileFileError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { match self { ProfileFileError::InvalidProfile(err) => { write!(f, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
write!( f, "This behavior requires following cargo feature(s) enabled: {message}", ) } } } } /// Builder for [`ProfileFileCredentialsProvider`] #[derive(Debug, Default)] pub struct Builder { provider_config: Option<ProviderConfig>, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
/// /// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvider { /// async fn load_credentials(&self) -> provider::Resul...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
/// Set the profile file that should be used by the [`ProfileFileCredentialsProvider`] pub fn profile_files(mut self, profile_files: ProfileFiles) -> Self { self.profile_files = Some(profile_files); self } /// Builds a [`ProfileFileCredentialsProvider`] pub fn build(self) -> ProfileFile...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
) }); let factory = exec::named::NamedProviderFactory::new(named_providers); ProfileFileCredentialsProvider { factory, sts_config: conf.sts_client_config(), provider_config: conf, } } } async fn build_provider_chain( provider_config: &Pro...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
441
495
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
.execute(|conf| async move { Builder::default().configure(&conf).build() }) .await } }; } make_test!(e2e_assume_role); make_test!(empty_config); make_test!(retry_on_error); make_test!(invalid_config); make_test!(region_override); make_test!(credential_pro...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
439cfbfe8cfcb933aea803c992f37f76575a48e4
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/439cfbfe8cfcb933aea803c992f37f76575a48e4/sdk/aws-config/src/profile/credentials.rs
481
495
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
.unwrap() .execute(|conf| async move { Builder::default().configure(&conf).build() }) .await } }; } make_test!(e2e_assume_role); make_test!(empty_config); make_test!(retry_on_error); make_test!(invalid_config); make_test!(region_override); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
d72d0378a6716e9a1cf5917d17e3c0f1a1867ddc
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d72d0378a6716e9a1cf5917d17e3c0f1a1867ddc/sdk/aws-config/src/profile/credentials.rs
481
496
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
write!( f, "This behavior requires following cargo feature(s) enabled: {message}", ) } } } } /// Builder for [`ProfileFileCredentialsProvider`] #[derive(Debug, Default)] pub struct Builder { provider_config: Option<ProviderConfig>, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
d579a1949f060dad9e9a4654881a914f525282ab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d579a1949f060dad9e9a4654881a914f525282ab/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
/// /// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvider { /// async fn load_credentials(&self) -> provider::Resul...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
d579a1949f060dad9e9a4654881a914f525282ab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d579a1949f060dad9e9a4654881a914f525282ab/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Profile File Based Credential Providers //! //! Profile file based providers combine two pieces: //! //! 1. Parsing and resolution of the assume role chain //! 2. A user-modifiable hashmap of provide...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:4
/// ```ini /// [default] /// credential_process = /opt/bin/awscreds-custom --username helen /// ``` /// /// An external process can be used to provide credentials. /// /// ### Loading Credentials from SSO /// ```ini /// [default] /// sso_start_url = https://example.com/start /// sso_region = us-east-2 /// sso_account_i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:5
} _ => CredentialsError::invalid_configuration(format!( "ProfileFile provider could not be built: {}", &err )), })?; let mut creds = match inner_provider .base() .provide_credentials() .instru...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
/// The name of the profile profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name of the profile profile: String, /// Err...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
ProfileFileError::InvalidProfile(err) => Some(err), _ => None, } } } impl Display for ProfileFileError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { match self { ProfileFileError::InvalidProfile(err) => { write!(f, "invalid profile: {}", er...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
f, "This behavior requires following cargo feature(s) enabled: {message}", ) } } } } /// Builder for [`ProfileFileCredentialsProvider`] #[derive(Debug, Default)] pub struct Builder { provider_config: Option<ProviderConfig>, profile_override: Option<St...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
/// ```no_run /// use aws_credential_types::provider::{self, future, ProvideCredentials}; /// use aws_config::profile::ProfileFileCredentialsProvider; /// #[derive(Debug)] /// struct MyCustomProvider; /// impl MyCustomProvider { /// async fn load_credentials(&self) -> provider::Result { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
pub fn profile_files(mut self, profile_files: ProfileFiles) -> Self { self.profile_files = Some(profile_files); self } /// Builds a [`ProfileFileCredentialsProvider`] pub fn build(self) -> ProfileFileCredentialsProvider { let build_span = tracing::debug_span!("build_profile_provider...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:12
}); let factory = exec::named::NamedProviderFactory::new(named_providers); let core_client = conf.sts_client(); ProfileFileCredentialsProvider { factory, client_config: ClientConfiguration { sts_client: core_client, region: conf.region(), ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
441
499
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:13
stringify!($name) )) .await .unwrap() .execute(|conf| async move { Builder::default().configure(&conf).build() }) .await } }; } make_test!(e2e_assume_role); make_test!(empty_config); make_test!(retry_on_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
81646ddee579fd5b07e36bf1408a49e5be3a2d0b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/81646ddee579fd5b07e36bf1408a49e5be3a2d0b/sdk/aws-config/src/profile/credentials.rs
481
499
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:6
/// An Error building a Credential source from an AWS Profile #[derive(Debug)] #[non_exhaustive] pub enum ProfileFileError { /// The profile was not a valid AWS profile #[non_exhaustive] InvalidProfile(ProfileFileLoadError), /// No profiles existed (the profile was empty) #[non_exhaustive] NoPr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6/sdk/aws-config/src/profile/credentials.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:7
/// The name of the profile profile: String, /// Error message message: Cow<'static, str>, }, /// The profile referred to a another profile by name that was not defined #[non_exhaustive] MissingProfile { /// The name of the profile profile: String, /// Err...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6/sdk/aws-config/src/profile/credentials.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:8
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { match self { ProfileFileError::InvalidProfile(err) => { write!(f, "invalid profile: {}", err) } ProfileFileError::CredentialLoop { profiles, next } => write!( f, "profil...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6/sdk/aws-config/src/profile/credentials.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:9
profile_files: Option<ProfileFiles>, custom_providers: HashMap<Cow<'static, str>, Arc<dyn ProvideCredentials>>, } impl Builder { /// Override the configuration for the [`ProfileFileCredentialsProvider`] /// /// # Examples /// /// ```no_run /// # async fn test() { /// use aws_config::pro...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6/sdk/aws-config/src/profile/credentials.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:10
/// future::ProvideCredentials::new(self.load_credentials()) /// } /// } /// /// # if cfg!(any(feature = "rustls", feature = "native-tls")) { /// let provider = ProfileFileCredentialsProvider::builder() /// .with_custom_provider("Custom", MyCustomProvider) /// .build(); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6/sdk/aws-config/src/profile/credentials.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-config/src/profile/credentials.rs:11
let mut named_providers = self.custom_providers.clone(); named_providers .entry("Environment".into()) .or_insert_with(|| { Arc::new(crate::environment::credentials::EnvironmentVariableCredentialsProvider::new_with_env( conf.env(), )) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-config/src/profile/credentials.rs
Apache-2.0
f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f392e8cd65b26fe82a5fb464927e7ecb7c2b36d6/sdk/aws-config/src/profile/credentials.rs
401
460