#[non_exhaustive]pub struct SetPermissionInputBuilder { /* private fields */ }Expand description
A builder for SetPermissionInput.
Implementations§
source§impl SetPermissionInputBuilder
impl SetPermissionInputBuilder
sourcepub fn set_stack_id(self, input: Option<String>) -> Self
pub fn set_stack_id(self, input: Option<String>) -> Self
The stack ID.
sourcepub fn get_stack_id(&self) -> &Option<String>
pub fn get_stack_id(&self) -> &Option<String>
The stack ID.
sourcepub fn iam_user_arn(self, input: impl Into<String>) -> Self
pub fn iam_user_arn(self, input: impl Into<String>) -> Self
The user's IAM ARN. This can also be a federated user's ARN.
This field is required.sourcepub fn set_iam_user_arn(self, input: Option<String>) -> Self
pub fn set_iam_user_arn(self, input: Option<String>) -> Self
The user's IAM ARN. This can also be a federated user's ARN.
sourcepub fn get_iam_user_arn(&self) -> &Option<String>
pub fn get_iam_user_arn(&self) -> &Option<String>
The user's IAM ARN. This can also be a federated user's ARN.
sourcepub fn allow_ssh(self, input: bool) -> Self
pub fn allow_ssh(self, input: bool) -> Self
The user is allowed to use SSH to communicate with the instance.
sourcepub fn set_allow_ssh(self, input: Option<bool>) -> Self
pub fn set_allow_ssh(self, input: Option<bool>) -> Self
The user is allowed to use SSH to communicate with the instance.
sourcepub fn get_allow_ssh(&self) -> &Option<bool>
pub fn get_allow_ssh(&self) -> &Option<bool>
The user is allowed to use SSH to communicate with the instance.
sourcepub fn allow_sudo(self, input: bool) -> Self
pub fn allow_sudo(self, input: bool) -> Self
The user is allowed to use sudo to elevate privileges.
sourcepub fn set_allow_sudo(self, input: Option<bool>) -> Self
pub fn set_allow_sudo(self, input: Option<bool>) -> Self
The user is allowed to use sudo to elevate privileges.
sourcepub fn get_allow_sudo(&self) -> &Option<bool>
pub fn get_allow_sudo(&self) -> &Option<bool>
The user is allowed to use sudo to elevate privileges.
sourcepub fn level(self, input: impl Into<String>) -> Self
pub fn level(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_level(self, input: Option<String>) -> Self
pub fn set_level(self, input: Option<String>) -> Self
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.
sourcepub fn get_level(&self) -> &Option<String>
pub fn get_level(&self) -> &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.
sourcepub fn build(self) -> Result<SetPermissionInput, BuildError>
pub fn build(self) -> Result<SetPermissionInput, BuildError>
Consumes the builder and constructs a SetPermissionInput.
source§impl SetPermissionInputBuilder
impl SetPermissionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetPermissionOutput, SdkError<SetPermissionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetPermissionOutput, SdkError<SetPermissionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetPermissionInputBuilder
impl Clone for SetPermissionInputBuilder
source§fn clone(&self) -> SetPermissionInputBuilder
fn clone(&self) -> SetPermissionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SetPermissionInputBuilder
impl Debug for SetPermissionInputBuilder
source§impl Default for SetPermissionInputBuilder
impl Default for SetPermissionInputBuilder
source§fn default() -> SetPermissionInputBuilder
fn default() -> SetPermissionInputBuilder
source§impl PartialEq for SetPermissionInputBuilder
impl PartialEq for SetPermissionInputBuilder
source§fn eq(&self, other: &SetPermissionInputBuilder) -> bool
fn eq(&self, other: &SetPermissionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.