#[non_exhaustive]pub struct AssumeRootInput {
pub target_principal: Option<String>,
pub task_policy_arn: Option<PolicyDescriptorType>,
pub duration_seconds: Option<i32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.target_principal: Option<String>
The member account principal ARN or account ID.
task_policy_arn: 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. You can add additional customer managed policies to further limit the permissions for the root session.
duration_seconds: 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.
Implementations§
source§impl AssumeRootInput
impl AssumeRootInput
sourcepub fn target_principal(&self) -> Option<&str>
pub fn target_principal(&self) -> Option<&str>
The member account principal ARN or account ID.
sourcepub fn task_policy_arn(&self) -> Option<&PolicyDescriptorType>
pub fn 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. You can add additional customer managed policies to further limit the permissions for the root session.
sourcepub fn duration_seconds(&self) -> Option<i32>
pub fn 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.
source§impl AssumeRootInput
impl AssumeRootInput
sourcepub fn builder() -> AssumeRootInputBuilder
pub fn builder() -> AssumeRootInputBuilder
Creates a new builder-style object to manufacture AssumeRootInput
.
Trait Implementations§
source§impl Clone for AssumeRootInput
impl Clone for AssumeRootInput
source§fn clone(&self) -> AssumeRootInput
fn clone(&self) -> AssumeRootInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssumeRootInput
impl Debug for AssumeRootInput
source§impl PartialEq for AssumeRootInput
impl PartialEq for AssumeRootInput
impl StructuralPartialEq for AssumeRootInput
Auto Trait Implementations§
impl Freeze for AssumeRootInput
impl RefUnwindSafe for AssumeRootInput
impl Send for AssumeRootInput
impl Sync for AssumeRootInput
impl Unpin for AssumeRootInput
impl UnwindSafe for AssumeRootInput
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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