Struct rusoto_sts::WebIdentityProvider [−][src]
WebIdentityProvider using OpenID Connect bearer token to retrieve AWS IAM credentials.
See https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html for more details.
Fields
web_identity_token: Variable<Secret, CredentialsError>
The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity provider. Your application must get this token by authenticating the user who is using your application with a web identity provider before the application makes an AssumeRoleWithWebIdentity call.
role_arn: Variable<String, CredentialsError>
The Amazon Resource Name (ARN) of the role that the caller is assuming.
role_session_name: Option<Variable<Option<String>, CredentialsError>>
An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your application. That way, the temporary security credentials that your application will use are associated with that user. This session name is included as part of the ARN and assumed role ID in the AssumedRoleUser response element.
duration_seconds: Option<i64>
The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) up to the maximum session duration setting for the role.
policy: Option<String>
An IAM policy in JSON format that you want to use as an inline session policy.
policy_arns: Option<Vec<PolicyDescriptorType>>
The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as managed session policies.
Implementations
impl WebIdentityProvider
[src]
pub fn new<A, B, C>(
web_identity_token: A,
role_arn: B,
role_session_name: Option<C>
) -> Self where
A: Into<Variable<Secret, CredentialsError>>,
B: Into<Variable<String, CredentialsError>>,
C: Into<Variable<Option<String>, CredentialsError>>,
[src]
web_identity_token: A,
role_arn: B,
role_session_name: Option<C>
) -> Self where
A: Into<Variable<Secret, CredentialsError>>,
B: Into<Variable<String, CredentialsError>>,
C: Into<Variable<Option<String>, CredentialsError>>,
Create new WebIdentityProvider by explicitly passing its configuration.
pub fn from_k8s_env() -> Self
[src]
Creat a WebIdentityProvider from the following environment variables:
AWS_WEB_IDENTITY_TOKEN_FILE
path to the web identity token file.AWS_ROLE_ARN
ARN of the role to assume.AWS_ROLE_SESSION_NAME
(optional) name applied to the assume-role session.
See https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html for more information about how IAM Roles for Kubernetes Service Accounts works.
Trait Implementations
impl Clone for WebIdentityProvider
[src]
fn clone(&self) -> WebIdentityProvider
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebIdentityProvider
[src]
impl ProvideAwsCredentials for WebIdentityProvider
[src]
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for WebIdentityProvider
impl Send for WebIdentityProvider
impl Sync for WebIdentityProvider
impl Unpin for WebIdentityProvider
impl !UnwindSafe for WebIdentityProvider
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,