Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . emr ]

modify-cluster-attributes

Description

Modifies the cluster attributes 'visible-to-all-users' and 'termination-protected'.

See 'aws help' for descriptions of global parameters.

Synopsis

  modify-cluster-attributes
--cluster-id <value>
[--visible-to-all-users | --no-visible-to-all-users]
[--termination-protected | --no-termination-protected]

Options

--cluster-id (string)

A unique string that identifies a cluster. The create-cluster command returns this identifier. You can use the list-clusters command to get cluster IDs.

--visible-to-all-users | --no-visible-to-all-users (boolean) Change cluster visibility for IAM users

--termination-protected | --no-termination-protected (boolean) Set termination protection on or off

See 'aws help' for descriptions of global parameters.

Examples

The following command sets the visibility of an EMR cluster with the ID j-301CDNY0J5XM4 to all users:

aws emr modify-cluster-attributes --cluster-id j-301CDNY0J5XM4 --visible-to-all-users