Struct aws_sdk_emr::operation::set_visible_to_all_users::builders::SetVisibleToAllUsersFluentBuilder
source · pub struct SetVisibleToAllUsersFluentBuilder { /* 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 Amazon EMR.
Sets the Cluster$VisibleToAllUsers value for an Amazon EMR cluster. When true, IAM principals in the Amazon Web Services account can perform Amazon 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 Amazon 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 Amazon EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.
Implementations§
source§impl SetVisibleToAllUsersFluentBuilder
impl SetVisibleToAllUsersFluentBuilder
sourcepub fn as_input(&self) -> &SetVisibleToAllUsersInputBuilder
pub fn as_input(&self) -> &SetVisibleToAllUsersInputBuilder
Access the SetVisibleToAllUsers as a reference.
sourcepub async fn send(
self
) -> Result<SetVisibleToAllUsersOutput, SdkError<SetVisibleToAllUsersError, HttpResponse>>
pub async fn send( self ) -> Result<SetVisibleToAllUsersOutput, SdkError<SetVisibleToAllUsersError, 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<SetVisibleToAllUsersOutput, SetVisibleToAllUsersError, Self>
pub fn customize( self ) -> CustomizableOperation<SetVisibleToAllUsersOutput, SetVisibleToAllUsersError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_job_flow_ids(&self) -> &Option<Vec<String>>
pub fn get_job_flow_ids(&self) -> &Option<Vec<String>>
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 Amazon 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 Amazon 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 Amazon 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 Amazon EMR actions on the cluster.
sourcepub fn get_visible_to_all_users(&self) -> &Option<bool>
pub fn get_visible_to_all_users(&self) -> &Option<bool>
A value of true indicates that an IAM principal in the Amazon Web Services account can perform Amazon 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 Amazon EMR actions on the cluster.
Trait Implementations§
source§impl Clone for SetVisibleToAllUsersFluentBuilder
impl Clone for SetVisibleToAllUsersFluentBuilder
source§fn clone(&self) -> SetVisibleToAllUsersFluentBuilder
fn clone(&self) -> SetVisibleToAllUsersFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more