/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the elasticmapreduce-2009-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ElasticMapReduce.Model { /// /// Container for the parameters to the SetVisibleToAllUsers operation. /// /// /// 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. /// /// public partial class SetVisibleToAllUsersRequest : AmazonElasticMapReduceRequest { private List _jobFlowIds = new List(); private bool? _visibleToAllUsers; /// /// Gets and sets the property JobFlowIds. /// /// The unique identifier of the job flow (cluster). /// /// [AWSProperty(Required=true)] public List JobFlowIds { get { return this._jobFlowIds; } set { this._jobFlowIds = value; } } // Check to see if JobFlowIds property is set internal bool IsSetJobFlowIds() { return this._jobFlowIds != null && this._jobFlowIds.Count > 0; } /// /// Gets and sets the property VisibleToAllUsers. /// /// 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. /// /// [AWSProperty(Required=true)] public bool VisibleToAllUsers { get { return this._visibleToAllUsers.GetValueOrDefault(); } set { this._visibleToAllUsers = value; } } // Check to see if VisibleToAllUsers property is set internal bool IsSetVisibleToAllUsers() { return this._visibleToAllUsers.HasValue; } } }