pub struct CredentialIssuer { /* private fields */ }Expand description
Issues scoped, short-lived AWS credentials via STS AssumeRole.
Implementations§
Source§impl CredentialIssuer
impl CredentialIssuer
pub async fn new() -> Result<Self>
pub async fn with_region(region: Option<&str>) -> Result<Self>
Sourcepub async fn issue(
&self,
session: &Session,
policy: &ScopedPolicy,
ttl: Duration,
) -> Result<TempCredentials>
pub async fn issue( &self, session: &Session, policy: &ScopedPolicy, ttl: Duration, ) -> Result<TempCredentials>
Assume a role with an inline policy that restricts permissions to the scoped policy. Optionally attaches a permissions boundary ARN as an additional ceiling.
Sourcepub async fn issue_with_boundary(
&self,
session: &Session,
policy: &ScopedPolicy,
ttl: Duration,
permissions_boundary: Option<&str>,
) -> Result<TempCredentials>
pub async fn issue_with_boundary( &self, session: &Session, policy: &ScopedPolicy, ttl: Duration, permissions_boundary: Option<&str>, ) -> Result<TempCredentials>
Assume a role with an inline policy and optional permissions boundary.
Sourcepub async fn issue_full(
&self,
session: &Session,
policy: &ScopedPolicy,
ttl: Duration,
permissions_boundary: Option<&str>,
network: Option<&NetworkPolicy>,
) -> Result<TempCredentials>
pub async fn issue_full( &self, session: &Session, policy: &ScopedPolicy, ttl: Duration, permissions_boundary: Option<&str>, network: Option<&NetworkPolicy>, ) -> Result<TempCredentials>
Assume a role with inline policy, optional boundary, and optional network conditions.
Auto Trait Implementations§
impl Freeze for CredentialIssuer
impl !RefUnwindSafe for CredentialIssuer
impl Send for CredentialIssuer
impl Sync for CredentialIssuer
impl Unpin for CredentialIssuer
impl UnsafeUnpin for CredentialIssuer
impl !UnwindSafe for CredentialIssuer
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> 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.