Struct aws_sdk_emr::client::fluent_builders::SetVisibleToAllUsers
source · pub struct SetVisibleToAllUsers { /* private fields */ }Expand description
Fluent builder constructing a request to SetVisibleToAllUsers.
The SetVisibleToAllUsers parameter is no longer supported. Your cluster may be visible to all users in your account. To restrict cluster access using an IAM policy, see Identity and Access Management for EMR.
Sets the Cluster$VisibleToAllUsers value for an EMR cluster. When true, IAM principals in the Amazon Web Services account can perform EMR cluster actions that their IAM policies allow. When false, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform EMR actions on the cluster, regardless of IAM permissions policies attached to other IAM principals.
This action works on running clusters. When you create a cluster, use the RunJobFlowInput$VisibleToAllUsers parameter.
For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
Implementations§
source§impl SetVisibleToAllUsers
impl SetVisibleToAllUsers
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<SetVisibleToAllUsers, AwsResponseRetryClassifier>, SdkError<SetVisibleToAllUsersError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<SetVisibleToAllUsers, AwsResponseRetryClassifier>, SdkError<SetVisibleToAllUsersError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<SetVisibleToAllUsersOutput, SdkError<SetVisibleToAllUsersError>>
pub async fn send(
self
) -> Result<SetVisibleToAllUsersOutput, SdkError<SetVisibleToAllUsersError>>
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 job_flow_ids(self, input: impl Into<String>) -> Self
pub fn job_flow_ids(self, input: impl Into<String>) -> Self
Appends an item to JobFlowIds.
To override the contents of this collection use set_job_flow_ids.
The unique identifier of the job flow (cluster).
sourcepub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
The unique identifier of the job flow (cluster).
sourcepub fn visible_to_all_users(self, input: bool) -> Self
pub fn visible_to_all_users(self, input: bool) -> Self
A value of true indicates that an IAM principal in the Amazon Web Services account can perform EMR actions on the cluster that the IAM policies attached to the principal allow. A value of false indicates that only the IAM principal that created the cluster and the Amazon Web Services root user can perform EMR actions on the cluster.
sourcepub fn set_visible_to_all_users(self, input: Option<bool>) -> Self
pub fn set_visible_to_all_users(self, input: Option<bool>) -> Self
A value of true indicates that an IAM principal in the Amazon Web Services account can perform EMR actions on the cluster that the IAM policies attached to the principal allow. A value of false indicates that only the IAM principal that created the cluster and the Amazon Web Services root user can perform EMR actions on the cluster.
Trait Implementations§
source§impl Clone for SetVisibleToAllUsers
impl Clone for SetVisibleToAllUsers
source§fn clone(&self) -> SetVisibleToAllUsers
fn clone(&self) -> SetVisibleToAllUsers
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more