pub struct AssumeRootFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AssumeRoot
.
Returns a set of short term credentials you can use to perform privileged tasks on a member account in your organization.
Before you can launch a privileged session, you must have centralized root access in your organization. For steps to enable this feature, see Centralize root access for member accounts in the IAM User Guide.
The STS global endpoint is not supported for AssumeRoot. You must send this request to a Regional STS endpoint. For more information, see Endpoints.
You can track AssumeRoot in CloudTrail logs to determine what actions were performed in a session. For more information, see Track privileged tasks in CloudTrail in the IAM User Guide.
Implementations§
Source§impl AssumeRootFluentBuilder
impl AssumeRootFluentBuilder
Sourcepub fn as_input(&self) -> &AssumeRootInputBuilder
pub fn as_input(&self) -> &AssumeRootInputBuilder
Access the AssumeRoot as a reference.
Sourcepub async fn send(
self,
) -> Result<AssumeRootOutput, SdkError<AssumeRootError, HttpResponse>>
pub async fn send( self, ) -> Result<AssumeRootOutput, SdkError<AssumeRootError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<AssumeRootOutput, AssumeRootError, Self>
pub fn customize( self, ) -> CustomizableOperation<AssumeRootOutput, AssumeRootError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn target_principal(self, input: impl Into<String>) -> Self
pub fn target_principal(self, input: impl Into<String>) -> Self
The member account principal ARN or account ID.
Sourcepub fn set_target_principal(self, input: Option<String>) -> Self
pub fn set_target_principal(self, input: Option<String>) -> Self
The member account principal ARN or account ID.
Sourcepub fn get_target_principal(&self) -> &Option<String>
pub fn get_target_principal(&self) -> &Option<String>
The member account principal ARN or account ID.
Sourcepub fn task_policy_arn(self, input: PolicyDescriptorType) -> Self
pub fn task_policy_arn(self, input: PolicyDescriptorType) -> Self
The identity based policy that scopes the session to the privileged tasks that can be performed. You can use one of following Amazon Web Services managed policies to scope root session actions.
Sourcepub fn set_task_policy_arn(self, input: Option<PolicyDescriptorType>) -> Self
pub fn set_task_policy_arn(self, input: Option<PolicyDescriptorType>) -> Self
The identity based policy that scopes the session to the privileged tasks that can be performed. You can use one of following Amazon Web Services managed policies to scope root session actions.
Sourcepub fn get_task_policy_arn(&self) -> &Option<PolicyDescriptorType>
pub fn get_task_policy_arn(&self) -> &Option<PolicyDescriptorType>
The identity based policy that scopes the session to the privileged tasks that can be performed. You can use one of following Amazon Web Services managed policies to scope root session actions.
Sourcepub fn duration_seconds(self, input: i32) -> Self
pub fn duration_seconds(self, input: i32) -> Self
The duration, in seconds, of the privileged session. The value can range from 0 seconds up to the maximum session duration of 900 seconds (15 minutes). If you specify a value higher than this setting, the operation fails.
By default, the value is set to 900
seconds.
Sourcepub fn set_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_duration_seconds(self, input: Option<i32>) -> Self
The duration, in seconds, of the privileged session. The value can range from 0 seconds up to the maximum session duration of 900 seconds (15 minutes). If you specify a value higher than this setting, the operation fails.
By default, the value is set to 900
seconds.
Sourcepub fn get_duration_seconds(&self) -> &Option<i32>
pub fn get_duration_seconds(&self) -> &Option<i32>
The duration, in seconds, of the privileged session. The value can range from 0 seconds up to the maximum session duration of 900 seconds (15 minutes). If you specify a value higher than this setting, the operation fails.
By default, the value is set to 900
seconds.
Trait Implementations§
Source§impl Clone for AssumeRootFluentBuilder
impl Clone for AssumeRootFluentBuilder
Source§fn clone(&self) -> AssumeRootFluentBuilder
fn clone(&self) -> AssumeRootFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AssumeRootFluentBuilder
impl !RefUnwindSafe for AssumeRootFluentBuilder
impl Send for AssumeRootFluentBuilder
impl Sync for AssumeRootFluentBuilder
impl Unpin for AssumeRootFluentBuilder
impl !UnwindSafe for AssumeRootFluentBuilder
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