#[non_exhaustive]pub struct SetPermissionInput {
pub stack_id: Option<String>,
pub iam_user_arn: Option<String>,
pub allow_ssh: Option<bool>,
pub allow_sudo: Option<bool>,
pub level: Option<String>,
}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.stack_id: Option<String>The stack ID.
iam_user_arn: Option<String>The user's IAM ARN. This can also be a federated user's ARN.
allow_ssh: Option<bool>The user is allowed to use SSH to communicate with the instance.
allow_sudo: Option<bool>The user is allowed to use sudo to elevate privileges.
level: Option<String>The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.
-
deny -
show -
deploy -
manage -
iam_only
For more information about the permissions associated with these levels, see Managing User Permissions.
Implementations§
source§impl SetPermissionInput
impl SetPermissionInput
sourcepub fn iam_user_arn(&self) -> Option<&str>
pub fn iam_user_arn(&self) -> Option<&str>
The user's IAM ARN. This can also be a federated user's ARN.
sourcepub fn allow_ssh(&self) -> Option<bool>
pub fn allow_ssh(&self) -> Option<bool>
The user is allowed to use SSH to communicate with the instance.
sourcepub fn allow_sudo(&self) -> Option<bool>
pub fn allow_sudo(&self) -> Option<bool>
The user is allowed to use sudo to elevate privileges.
sourcepub fn level(&self) -> Option<&str>
pub fn level(&self) -> Option<&str>
The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.
-
deny -
show -
deploy -
manage -
iam_only
For more information about the permissions associated with these levels, see Managing User Permissions.
source§impl SetPermissionInput
impl SetPermissionInput
sourcepub fn builder() -> SetPermissionInputBuilder
pub fn builder() -> SetPermissionInputBuilder
Creates a new builder-style object to manufacture SetPermissionInput.
Trait Implementations§
source§impl Clone for SetPermissionInput
impl Clone for SetPermissionInput
source§fn clone(&self) -> SetPermissionInput
fn clone(&self) -> SetPermissionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SetPermissionInput
impl Debug for SetPermissionInput
source§impl PartialEq for SetPermissionInput
impl PartialEq for SetPermissionInput
source§fn eq(&self, other: &SetPermissionInput) -> bool
fn eq(&self, other: &SetPermissionInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetPermissionInput
Auto Trait Implementations§
impl Freeze for SetPermissionInput
impl RefUnwindSafe for SetPermissionInput
impl Send for SetPermissionInput
impl Sync for SetPermissionInput
impl Unpin for SetPermissionInput
impl UnwindSafe for SetPermissionInput
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> 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