#[non_exhaustive]pub struct GetScopedCredentialsOutputBuilder { /* private fields */ }Expand description
A builder for GetScopedCredentialsOutput.
Implementations§
Source§impl GetScopedCredentialsOutputBuilder
impl GetScopedCredentialsOutputBuilder
Sourcepub fn credentials(self, input: Credentials) -> Self
pub fn credentials(self, input: Credentials) -> Self
The temporary security credentials for the scoped down session, which include an access key ID, a secret access key, and a security token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
Sourcepub fn set_credentials(self, input: Option<Credentials>) -> Self
pub fn set_credentials(self, input: Option<Credentials>) -> Self
The temporary security credentials for the scoped down session, which include an access key ID, a secret access key, and a security token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
Sourcepub fn get_credentials(&self) -> &Option<Credentials>
pub fn get_credentials(&self) -> &Option<Credentials>
The temporary security credentials for the scoped down session, which include an access key ID, a secret access key, and a security token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
Sourcepub fn session_info(self, input: ScopedSession) -> Self
pub fn session_info(self, input: ScopedSession) -> Self
Metadata about the resulting scoped session, including its identifier and ARN. Because the identity does not change, the identifiers reflect the same principal and session name as the calling session.
Sourcepub fn set_session_info(self, input: Option<ScopedSession>) -> Self
pub fn set_session_info(self, input: Option<ScopedSession>) -> Self
Metadata about the resulting scoped session, including its identifier and ARN. Because the identity does not change, the identifiers reflect the same principal and session name as the calling session.
Sourcepub fn get_session_info(&self) -> &Option<ScopedSession>
pub fn get_session_info(&self) -> &Option<ScopedSession>
Metadata about the resulting scoped session, including its identifier and ARN. Because the identity does not change, the identifiers reflect the same principal and session name as the calling session.
Sourcepub fn session_token_utilization(self, input: i32) -> Self
pub fn session_token_utilization(self, input: i32) -> Self
The percentage (0-100) of the maximum allowed session token size that the returned session token consumes.
Sourcepub fn set_session_token_utilization(self, input: Option<i32>) -> Self
pub fn set_session_token_utilization(self, input: Option<i32>) -> Self
The percentage (0-100) of the maximum allowed session token size that the returned session token consumes.
Sourcepub fn get_session_token_utilization(&self) -> &Option<i32>
pub fn get_session_token_utilization(&self) -> &Option<i32>
The percentage (0-100) of the maximum allowed session token size that the returned session token consumes.
Sourcepub fn session_token_size(self, input: i32) -> Self
pub fn session_token_size(self, input: i32) -> Self
The size, in bytes, of the session token returned in the Credentials for this response.
Sourcepub fn set_session_token_size(self, input: Option<i32>) -> Self
pub fn set_session_token_size(self, input: Option<i32>) -> Self
The size, in bytes, of the session token returned in the Credentials for this response.
Sourcepub fn get_session_token_size(&self) -> &Option<i32>
pub fn get_session_token_size(&self) -> &Option<i32>
The size, in bytes, of the session token returned in the Credentials for this response.
Sourcepub fn scoped_policies_count(self, input: i32) -> Self
pub fn scoped_policies_count(self, input: i32) -> Self
GetScopedCredentials can be called recursively and ScopedPoliciesCount specifies the number of scope down policies applied to the session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down policy layers are allowed per session. If a session already has 3 GetScopedCredentials scope-down policies, a subsequent GetScopedCredentials call that supplies a Policy (attempting to append a fourth scope-down policy) is denied.
Sourcepub fn set_scoped_policies_count(self, input: Option<i32>) -> Self
pub fn set_scoped_policies_count(self, input: Option<i32>) -> Self
GetScopedCredentials can be called recursively and ScopedPoliciesCount specifies the number of scope down policies applied to the session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down policy layers are allowed per session. If a session already has 3 GetScopedCredentials scope-down policies, a subsequent GetScopedCredentials call that supplies a Policy (attempting to append a fourth scope-down policy) is denied.
Sourcepub fn get_scoped_policies_count(&self) -> &Option<i32>
pub fn get_scoped_policies_count(&self) -> &Option<i32>
GetScopedCredentials can be called recursively and ScopedPoliciesCount specifies the number of scope down policies applied to the session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down policy layers are allowed per session. If a session already has 3 GetScopedCredentials scope-down policies, a subsequent GetScopedCredentials call that supplies a Policy (attempting to append a fourth scope-down policy) is denied.
Sourcepub fn source_identity(self, input: impl Into<String>) -> Self
pub fn source_identity(self, input: impl Into<String>) -> Self
The source identity of the calling session, carried forward unchanged. This operation never sets or modifies the source identity; it reflects the value established when the source identity was first set. For more information, see Monitor and control actions taken with assumed roles in the IAM User Guide.
Sourcepub fn set_source_identity(self, input: Option<String>) -> Self
pub fn set_source_identity(self, input: Option<String>) -> Self
The source identity of the calling session, carried forward unchanged. This operation never sets or modifies the source identity; it reflects the value established when the source identity was first set. For more information, see Monitor and control actions taken with assumed roles in the IAM User Guide.
Sourcepub fn get_source_identity(&self) -> &Option<String>
pub fn get_source_identity(&self) -> &Option<String>
The source identity of the calling session, carried forward unchanged. This operation never sets or modifies the source identity; it reflects the value established when the source identity was first set. For more information, see Monitor and control actions taken with assumed roles in the IAM User Guide.
Sourcepub fn build(self) -> GetScopedCredentialsOutput
pub fn build(self) -> GetScopedCredentialsOutput
Consumes the builder and constructs a GetScopedCredentialsOutput.
Trait Implementations§
Source§impl Clone for GetScopedCredentialsOutputBuilder
impl Clone for GetScopedCredentialsOutputBuilder
Source§fn clone(&self) -> GetScopedCredentialsOutputBuilder
fn clone(&self) -> GetScopedCredentialsOutputBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GetScopedCredentialsOutputBuilder
impl Default for GetScopedCredentialsOutputBuilder
Source§fn default() -> GetScopedCredentialsOutputBuilder
fn default() -> GetScopedCredentialsOutputBuilder
impl StructuralPartialEq for GetScopedCredentialsOutputBuilder
Auto Trait Implementations§
impl Freeze for GetScopedCredentialsOutputBuilder
impl RefUnwindSafe for GetScopedCredentialsOutputBuilder
impl Send for GetScopedCredentialsOutputBuilder
impl Sync for GetScopedCredentialsOutputBuilder
impl Unpin for GetScopedCredentialsOutputBuilder
impl UnsafeUnpin for GetScopedCredentialsOutputBuilder
impl UnwindSafe for GetScopedCredentialsOutputBuilder
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
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> ⓘ
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> ⓘ
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 more