set_visible_to_all_users ( $job_flow_ids, $visible_to_all_users, $opt )

Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specifed job flows. This action works on running job flows. You can also set the visibility of a job flow when you launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers action can be called only by an IAM user who created the job flow or the AWS account that owns the job flow.

Access

public

Parameters

Parameter

Type

Required

Description

$job_flow_ids

string
array

Required

Identifiers of the job flows to receive the new visibility setting. Pass a string for a single value, or an indexed array for multiple values.

$visible_to_all_users

boolean

Required

Whether the specified job flows are visible to all IAM users of the AWS account associated with the job flow. If this value is set to True, all IAM users of that AWS account can view and, if they have the proper IAM policy permissions set, manage the job flows. If it is set to False, only the IAM user that created a job flow can view and manage it.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

Method defined in services/emr.class.php | Toggle source view (12 lines) | View on GitHub

public function set_visible_to_all_users($job_flow_ids, $visible_to_all_users, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['VisibleToAllUsers'] = $visible_to_all_users;
    
    // Required list (non-map)
    $opt = array_merge($opt, CFComplexType::map(array(
        'JobFlowIds' => (is_array($job_flow_ids) ? $job_flow_ids : array($job_flow_ids))
    ), 'member'));

    return $this->authenticate('SetVisibleToAllUsers', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback