pub struct SetPermissionFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to SetPermission.
Specifies a user's permissions. For more information, see Security and Permissions.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
Implementations§
source§impl SetPermissionFluentBuilder
impl SetPermissionFluentBuilder
sourcepub fn as_input(&self) -> &SetPermissionInputBuilder
pub fn as_input(&self) -> &SetPermissionInputBuilder
Access the SetPermission as a reference.
sourcepub async fn send(
self
) -> Result<SetPermissionOutput, SdkError<SetPermissionError, HttpResponse>>
pub async fn send( self ) -> Result<SetPermissionOutput, SdkError<SetPermissionError, 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<SetPermissionOutput, SetPermissionError, Self>
pub fn customize( self ) -> CustomizableOperation<SetPermissionOutput, SetPermissionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
Trait Implementations§
source§impl Clone for SetPermissionFluentBuilder
impl Clone for SetPermissionFluentBuilder
source§fn clone(&self) -> SetPermissionFluentBuilder
fn clone(&self) -> SetPermissionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more