NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class EmrClient

Client to interact with Amazon Elastic MapReduce

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Guzzle\Http\Client implements Guzzle\Http\ClientInterface
  Guzzle\Service\Client implements Guzzle\Service\ClientInterface
  Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
  Aws\Emr\EmrClient

Namespace: Aws\Emr
Link: User guide
Link: API docs
Located at Aws/Emr/EmrClient.php

## Methods summary

- `public static` `factory ( array|Collection $config = array() )`

  Factory method to create a new Amazon Elastic MapReduce client using an array of configuration options.

- `public` `addInstanceGroups ( array $args = array() )`

  Executes the AddInstanceGroups operation.

- `public` `addJobFlowSteps ( array $args = array() )`

  Executes the AddJobFlowSteps operation.

- `public` `addTags ( array $args = array() )`

  Executes the AddTags operation.

- `public` `describeCluster ( array $args = array() )`

  Executes the DescribeCluster operation.

- `public` `describeJobFlows ( array $args = array() )`

  Executes the DescribeJobFlows operation.

- `public` `describeStep ( array $args = array() )`

  Executes the DescribeStep operation.

- `public` `listBootstrapActions ( array $args = array() )`

  Executes the ListBootstrapActions operation.

- `public` `listClusters ( array $args = array() )`

  Executes the ListClusters operation.

- `public` `listInstanceGroups ( array $args = array() )`

  Executes the ListInstanceGroups operation.

- `public` `listInstances ( array $args = array() )`

  Executes the ListInstances operation.

- `public` `listSteps ( array $args = array() )`

  Executes the ListSteps operation.

- `public` `modifyInstanceGroups ( array $args = array() )`

  Executes the ModifyInstanceGroups operation.

- `public` `removeTags ( array $args = array() )`

  Executes the RemoveTags operation.

- `public` `runJobFlow ( array $args = array() )`

  Executes the RunJobFlow operation.

- `public` `setTerminationProtection ( array $args = array() )`

  Executes the SetTerminationProtection operation.

- `public` `setVisibleToAllUsers ( array $args = array() )`

  Executes the SetVisibleToAllUsers operation.

- `public` `terminateJobFlows ( array $args = array() )`

  Executes the TerminateJobFlows operation.

- `public` `getDescribeJobFlowsIterator ( array $args = array() )`

  The input array uses the parameters of the DescribeJobFlows operation

- `public` `getListBootstrapActionsIterator ( array $args = array() )`

  The input array uses the parameters of the ListBootstrapActions operation

- `public` `getListClustersIterator ( array $args = array() )`

  The input array uses the parameters of the ListClusters operation

- `public` `getListInstanceGroupsIterator ( array $args = array() )`

  The input array uses the parameters of the ListInstanceGroups operation

- `public` `getListInstancesIterator ( array $args = array() )`

  The input array uses the parameters of the ListInstances operation

- `public` `getListStepsIterator ( array $args = array() )`

  The input array uses the parameters of the ListSteps operation

## Methods detail

# `public static `Aws\Emr\EmrClient``
`factory( array|`Guzzle\Common\Collection` $config = array() )`

Factory method to create a new Amazon Elastic MapReduce client using an array of configuration options.

#### Parameters

$config
  `array|`Guzzle\Common\Collection``
  $config Client configuration data

#### Returns

``Aws\Emr\EmrClient``

#### Link

http://docs.aws.amazon.com/aws-sdk-php/v2/guide/configuration.html#client-configuration-options

#### Overrides

`Guzzle\Service\Client::factory`
# `public `Guzzle\Service\Resource\Model``
`addInstanceGroups( array $args = array() )`

Executes the AddInstanceGroups operation.

AddInstanceGroups adds an instance group to a running cluster.

#### Examples

- Basic formatting example

      $result = $client->addInstanceGroups(array(
          // InstanceGroups is required
          'InstanceGroups' => array(
              array(
                  'Name' => 'string',
                  'Market' => 'string',
                  // InstanceRole is required
                  'InstanceRole' => 'string',
                  'BidPrice' => 'string',
                  // InstanceType is required
                  'InstanceType' => 'string',
                  // InstanceCount is required
                  'InstanceCount' => integer,
              ),
              // ... repeated
          ),
          // JobFlowId is required
          'JobFlowId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - InstanceGroups => (array<associative-array>)

    Instance Groups to add.

    - (associative-array)

      Configuration defining a new instance group.

      - Name => (string)

        Friendly name given to the instance group.

      - Market => (string: ON_DEMAND | SPOT )

        Market type of the Amazon EC2 instances used to create a cluster node.

      - InstanceRole => (string: MASTER | CORE | TASK )

        The role of the instance group in the cluster.

      - BidPrice => (string)

        Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

      - InstanceType => (string)

        The Amazon EC2 instance type for all instances in the instance group.

      - InstanceCount => (int)

        Target number of instances for the instance group.

  - JobFlowId => (string)

    Job flow in which to add the instance groups.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- JobFlowId => (string)

  The job flow ID in which the instance groups are added.

- InstanceGroupIds => (array<string>)

  Instance group IDs of the newly created instance groups.

# `public `Guzzle\Service\Resource\Model``
`addJobFlowSteps( array $args = array() )`

Executes the AddJobFlowSteps operation.

AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide.

A step specifies the location of a JAR file stored either on the master node of the job flow or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step.

Elastic MapReduce executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully.

You can only add steps to a job flow that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

#### Examples

- Basic formatting example

      $result = $client->addJobFlowSteps(array(
          // JobFlowId is required
          'JobFlowId' => 'string',
          // Steps is required
          'Steps' => array(
              array(
                  // Name is required
                  'Name' => 'string',
                  'ActionOnFailure' => 'string',
                  // HadoopJarStep is required
                  'HadoopJarStep' => array(
                      'Properties' => array(
                          array(
                              'Key' => 'string',
                              'Value' => 'string',
                          ),
                          // ... repeated
                      ),
                      // Jar is required
                      'Jar' => 'string',
                      'MainClass' => 'string',
                      'Args' => array('string', ... ),
                  ),
              ),
              // ... repeated
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - JobFlowId => (string)

    A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.

  - Steps => (array<associative-array>)

    A list of StepConfig to be executed by the job flow.

    - (associative-array)

      Specification of a job flow step.

      - Name => (string)

        The name of the job flow step.

      - ActionOnFailure => (string: TERMINATE_JOB_FLOW | TERMINATE_CLUSTER | CANCEL_AND_WAIT | CONTINUE )

        The action to take if the job flow step fails.

      - HadoopJarStep => (associative-array)

        The JAR file used for the job flow step.

        - Properties => (array<associative-array>)

          A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.

          - (associative-array)

            A key value pair.

            - Key => (string)

              The unique identifier of a key value pair.

            - Value => (string)

              The value part of the identified key.

        - Jar => (string)

          A path to a JAR file run during the step.

        - MainClass => (string)

          The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.

        - Args => (array<string>)

          A list of command line arguments passed to the JAR file's main function when executed.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- StepIds => (array<string>)

  The identifiers of the list of steps added to the job flow.

# `public `Guzzle\Service\Resource\Model``
`addTags( array $args = array() )`

Executes the AddTags operation.

Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

#### Examples

- Basic formatting example

      $result = $client->addTags(array(
          // ResourceId is required
          'ResourceId' => 'string',
          // Tags is required
          'Tags' => array(
              array(
                  'Key' => 'string',
                  'Value' => 'string',
              ),
              // ... repeated
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ResourceId => (string)

    The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.

  - Tags => (array<associative-array>)

    A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

    - (associative-array)

      A key/value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clu\ sters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

      - Key => (string)

        A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.

      - Value => (string)

        A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`describeCluster( array $args = array() )`

Executes the DescribeCluster operation.

Provides cluster-level details including status, hardware and software configuration, VPC settings, and so on. For information about the cluster steps, see ListSteps.

#### Examples

- Basic formatting example

      $result = $client->describeCluster(array(
          // ClusterId is required
          'ClusterId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ClusterId => (string)

    The identifier of the cluster to describe.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Cluster => (associative-array)

  This output contains the details for the requested cluster.

  - Id => (string)

    The unique identifier for the cluster.

  - Name => (string)

    The name of the cluster.

  - Status => (associative-array)

    The current status details about the cluster.

    - State => (string)

      The current state of the cluster.

    - StateChangeReason => (associative-array)

      The reason for the cluster status change.

      - Code => (string)

        The programmatic code for the state change reason.

      - Message => (string)

        The descriptive message for the state change reason.

    - Timeline => (associative-array)

      A timeline that represents the status of a cluster over the lifetime of the cluster.

      - CreationDateTime => (string)

        The creation date and time of the cluster.

      - ReadyDateTime => (string)

        The date and time when the cluster was ready to execute steps.

      - EndDateTime => (string)

        The date and time when the cluster was terminated.

  - Ec2InstanceAttributes => (associative-array)

    Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.

    - Ec2KeyName => (string)

      The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".

    - Ec2SubnetId => (string)

      To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.

      Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.

    - Ec2AvailabilityZone => (string)

      The Availability Zone in which the cluster will run.

    - IamInstanceProfile => (string)

      The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

    - EmrManagedMasterSecurityGroup => (string)

      The identifier of the Amazon EC2 security group (managed by Amazon Elastic MapReduce) for the master node.

    - EmrManagedSlaveSecurityGroup => (string)

      The identifier of the Amazon EC2 security group (managed by Amazon Elastic MapReduce) for the slave nodes.

    - AdditionalMasterSecurityGroups => (array<string>)

      A list of additional Amazon EC2 security group IDs for the master node.

    - AdditionalSlaveSecurityGroups => (array<string>)

      A list of additional Amazon EC2 security group IDs for the slave nodes.

  - LogUri => (string)

    The path to the Amazon S3 location where logs for this cluster are stored.

  - RequestedAmiVersion => (string)

    The AMI version requested for this cluster.

  - RunningAmiVersion => (string)

    The AMI version running on this cluster. This differs from the requested version only if the requested version is a meta version, such as "latest".

  - AutoTerminate => (bool)

    Specifies whether the cluster should terminate after completing all steps.

  - TerminationProtected => (bool)

    Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.

  - VisibleToAllUsers => (bool)

    Indicates whether the job flow is 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 manage the job flow if they have the proper policy permissions set. If this value is false, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.

  - Applications => (array<associative-array>)

    The applications installed on this cluster.

    - (associative-array)

      An application is any Amazon or third-party software that you can add to the cluster. This structure contains a list of strings that indicates the software to use with the cluster and accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action argument. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

      - "mapr-m3" - launch the job flow using MapR M3 Edition.
      - "mapr-m5" - launch the job flow using MapR M5 Edition.
      - "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition, respectively.
      - Name => (string)

        The name of the application.

      - Version => (string)

        The version of the application.

      - Args => (array<string>)

        Arguments for Amazon EMR to pass to the application.

      - AdditionalInfo => (associative-array<string>)

        Associative array of <string> keys mapping to (string) values. Each array key should be changed to an appropriate <string>.

        This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.

        - <string> => (string)
  - Tags => (array<associative-array>)

    A list of tags associated with a cluster.

    - (associative-array)

      A key/value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clu\ sters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

      - Key => (string)

        A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.

      - Value => (string)

        A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.

  - ServiceRole => (string)

    The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

  - NormalizedInstanceHours => (int)

    An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

  - MasterPublicDnsName => (string)

    The public DNS name of the master Ec2 instance.

# `public `Guzzle\Service\Resource\Model``
`describeJobFlows( array $args = array() )`

Executes the DescribeJobFlows operation.

This API is deprecated and will eventually be removed. We recommend you use ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions instead.

DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time.

Regardless of supplied parameters, only job flows created within the last two months are returned.

If no parameters are supplied, then job flows matching either of the following criteria are returned:

- Job flows created and completed in the last two weeks
- Job flows created within the last two months that are in one of the following states: RUNNING , WAITING , SHUTTING_DOWN , STARTING

Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions.

#### Examples

- Basic formatting example

      $result = $client->describeJobFlows(array(
          'CreatedAfter' => '',
          'CreatedBefore' => '',
          'JobFlowIds' => array('string', ... ),
          'JobFlowStates' => array('string', ... ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - CreatedAfter => ()

    Return only job flows created after this date and time.

  - CreatedBefore => ()

    Return only job flows created before this date and time.

  - JobFlowIds => (array<string>)

    Return only job flows whose job flow ID is contained in this list.

  - JobFlowStates => (array<string: STARTING | BOOTSTRAPPING | RUNNING | WAITING | SHUTTING_DOWN | TERMINATED | COMPLETED | FAILED >)

    Return only job flows whose state is contained in this list.

    (string: STARTING | BOOTSTRAPPING | RUNNING | WAITING | SHUTTING_DOWN | TERMINATED | COMPLETED | FAILED )

    The type of instance.

    A small instance

    A large instance

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- JobFlows => (array<associative-array>)

  A list of job flows matching the parameters supplied.

  - (associative-array)

    A description of a job flow.

    - JobFlowId => (string)

      The job flow identifier.

    - Name => (string)

      The name of the job flow.

    - LogUri => (string)

      The location in Amazon S3 where log files for the job are stored.

    - AmiVersion => (string)

      The version of the AMI used to initialize Amazon EC2 instances in the job flow. For a list of AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

    - ExecutionStatusDetail => (associative-array)

      Describes the execution status of the job flow.

      - State => (string)

        The state of the job flow.

      - CreationDateTime => (string)

        The creation date and time of the job flow.

      - StartDateTime => (string)

        The start date and time of the job flow.

      - ReadyDateTime => (string)

        The date and time when the job flow was ready to start running bootstrap actions.

      - EndDateTime => (string)

        The completion date and time of the job flow.

      - LastStateChangeReason => (string)

        Description of the job flow last changed state.

    - Instances => (associative-array)

      Describes the Amazon EC2 instances of the job flow.

      - MasterInstanceType => (string)

        The Amazon EC2 master node instance type.

      - MasterPublicDnsName => (string)

        The DNS name of the master node.

      - MasterInstanceId => (string)

        The Amazon EC2 instance identifier of the master node.

      - SlaveInstanceType => (string)

        The Amazon EC2 slave node instance type.

      - InstanceCount => (int)

        The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.

      - InstanceGroups => (array<associative-array>)

        Details about the job flow's instance groups.

        - (associative-array)

          Detailed information about an instance group.

          - InstanceGroupId => (string)

            Unique identifier for the instance group.

          - Name => (string)

            Friendly name for the instance group.

          - Market => (string)

            Market type of the Amazon EC2 instances used to create a cluster node.

          - InstanceRole => (string)

            Instance group role in the cluster

          - BidPrice => (string)

            Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

          - InstanceType => (string)

            Amazon EC2 Instance type.

          - InstanceRequestCount => (int)

            Target number of instances to run in the instance group.

          - InstanceRunningCount => (int)

            Actual count of running instances.

          - State => (string)

            State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

          - LastStateChangeReason => (string)

            Details regarding the state of the instance group.

          - CreationDateTime => (string)

            The date/time the instance group was created.

          - StartDateTime => (string)

            The date/time the instance group was started.

          - ReadyDateTime => (string)

            The date/time the instance group was available to the cluster.

          - EndDateTime => (string)

            The date/time the instance group was terminated.

      - NormalizedInstanceHours => (int)

        An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

      - Ec2KeyName => (string)

        The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

      - Ec2SubnetId => (string)

        For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.

      - Placement => (associative-array)

        The Amazon EC2 Availability Zone for the job flow.

        - AvailabilityZone => (string)

          The Amazon EC2 Availability Zone for the job flow.

      - KeepJobFlowAliveWhenNoSteps => (bool)

        Specifies whether the job flow should terminate after completing all steps.

      - TerminationProtected => (bool)

        Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.

      - HadoopVersion => (string)

        The Hadoop version for the job flow.

    - Steps => (array<associative-array>)

      A list of steps run by the job flow.

      - (associative-array)

        Combines the execution state and configuration of a step.

        - StepConfig => (associative-array)

          The step configuration.

          - Name => (string)

            The name of the job flow step.

          - ActionOnFailure => (string)

            The action to take if the job flow step fails.

          - HadoopJarStep => (associative-array)

            The JAR file used for the job flow step.

            - Properties => (array<associative-array>)

              A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.

              - (associative-array)

                A key value pair.

                - Key => (string)

                  The unique identifier of a key value pair.

                - Value => (string)

                  The value part of the identified key.

            - Jar => (string)

              A path to a JAR file run during the step.

            - MainClass => (string)

              The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.

            - Args => (array<string>)

              A list of command line arguments passed to the JAR file's main function when executed.

        - ExecutionStatusDetail => (associative-array)

          The description of the step status.

          - State => (string)

            The state of the job flow step.

          - CreationDateTime => (string)

            The creation date and time of the step.

          - StartDateTime => (string)

            The start date and time of the step.

          - EndDateTime => (string)

            The completion date and time of the step.

          - LastStateChangeReason => (string)

            A description of the step's current state.

    - BootstrapActions => (array<associative-array>)

      A list of the bootstrap actions run by the job flow.

      - (associative-array)

        Reports the configuration of a bootstrap action in a job flow.

        - BootstrapActionConfig => (associative-array)

          A description of the bootstrap action.

          - Name => (string)

            The name of the bootstrap action.

          - ScriptBootstrapAction => (associative-array)

            The script run by the bootstrap action.

            - Path => (string)

              Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

            - Args => (array<string>)

              A list of command line arguments to pass to the bootstrap action script.

    - SupportedProducts => (array<string>)

      A list of strings set by third party software when the job flow is launched. If you are not using third party software to manage the job flow this value is empty.

    - VisibleToAllUsers => (bool)

      Specifies whether the job flow is 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 policy permissions set) manage the job flow. If it is set to false, only the IAM user that created the job flow can view and manage it. This value can be changed using the SetVisibleToAllUsers action.

    - JobFlowRole => (string)

      The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

    - ServiceRole => (string)

      The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

# `public `Guzzle\Service\Resource\Model``
`describeStep( array $args = array() )`

Executes the DescribeStep operation.

Provides more detail about the cluster step.

#### Examples

- Basic formatting example

      $result = $client->describeStep(array(
          // ClusterId is required
          'ClusterId' => 'string',
          // StepId is required
          'StepId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ClusterId => (string)

    The identifier of the cluster with steps to describe.

  - StepId => (string)

    The identifier of the step to describe.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Step => (associative-array)

  The step details for the requested step identifier.

  - Id => (string)

    The identifier of the cluster step.

  - Name => (string)

    The name of the cluster step.

  - Config => (associative-array)

    The Hadoop job configuration of the cluster step.

    - Jar => (string)

      The path to the JAR file that runs during the step.

    - Properties => (associative-array<string>)

      Associative array of <string> keys mapping to (string) values. Each array key should be changed to an appropriate <string>.

      The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.

      - <string> => (string)
    - MainClass => (string)

      The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.

    - Args => (array<string>)

      The list of command line arguments to pass to the JAR file's main function for execution.

  - ActionOnFailure => (string)

    This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.

  - Status => (associative-array)

    The current execution status details of the cluster step.

    - State => (string)

      The execution state of the cluster step.

    - StateChangeReason => (associative-array)

      The reason for the step execution status change.

      - Code => (string)

        The programmable code for the state change reason.

      - Message => (string)

        The descriptive message for the state change reason.

    - Timeline => (associative-array)

      The timeline of the cluster step status over time.

      - CreationDateTime => (string)

        The date and time when the cluster step was created.

      - StartDateTime => (string)

        The date and time when the cluster step execution started.

      - EndDateTime => (string)

        The date and time when the cluster step execution completed or failed.

# `public `Guzzle\Service\Resource\Model``
`listBootstrapActions( array $args = array() )`

Executes the ListBootstrapActions operation.

Provides information about the bootstrap actions associated with a cluster.

#### Examples

- Basic formatting example

      $result = $client->listBootstrapActions(array(
          // ClusterId is required
          'ClusterId' => 'string',
          'Marker' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ClusterId => (string)

    The cluster identifier for the bootstrap actions to list .

  - Marker => (string)

    The pagination token that indicates the next set of results to retrieve .

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- BootstrapActions => (array<associative-array>)

  The bootstrap actions associated with the cluster .

  - (associative-array)

    An entity describing an executable that runs on a cluster.

    - Name => (string)

      The name of the command.

    - ScriptPath => (string)

      The Amazon S3 location of the command script.

    - Args => (array<string>)

      Arguments for Amazon EMR to pass to the command for execution.

- Marker => (string)

  The pagination token that indicates the next set of results to retrieve .

# `public `Guzzle\Service\Resource\Model``
`listClusters( array $args = array() )`

Executes the ListClusters operation.

Provides the status of all clusters visible to this AWS account. Allows you to filter the list of clusters based on certain criteria; for example, filtering by cluster creation date and time or by status. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListClusters calls.

#### Examples

- Basic formatting example

      $result = $client->listClusters(array(
          'CreatedAfter' => '',
          'CreatedBefore' => '',
          'ClusterStates' => array('string', ... ),
          'Marker' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - CreatedAfter => ()

    The creation date and time beginning value filter for listing clusters .

  - CreatedBefore => ()

    The creation date and time end value filter for listing clusters .

  - ClusterStates => (array<string: STARTING | BOOTSTRAPPING | RUNNING | WAITING | TERMINATING | TERMINATED | TERMINATED_WITH_ERRORS >)

    The cluster state filters to apply when listing clusters.

  - Marker => (string)

    The pagination token that indicates the next set of results to retrieve.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Clusters => (array<associative-array>)

  The list of clusters for the account based on the given filters.

  - (associative-array)

    The summary description of the cluster.

    - Id => (string)

      The unique identifier for the cluster.

    - Name => (string)

      The name of the cluster.

    - Status => (associative-array)

      The details about the current status of the cluster.

      - State => (string)

        The current state of the cluster.

      - StateChangeReason => (associative-array)

        The reason for the cluster status change.

        - Code => (string)

          The programmatic code for the state change reason.

        - Message => (string)

          The descriptive message for the state change reason.

      - Timeline => (associative-array)

        A timeline that represents the status of a cluster over the lifetime of the cluster.

        - CreationDateTime => (string)

          The creation date and time of the cluster.

        - ReadyDateTime => (string)

          The date and time when the cluster was ready to execute steps.

        - EndDateTime => (string)

          The date and time when the cluster was terminated.

    - NormalizedInstanceHours => (int)

      An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

- Marker => (string)

  The pagination token that indicates the next set of results to retrieve.

# `public `Guzzle\Service\Resource\Model``
`listInstanceGroups( array $args = array() )`

Executes the ListInstanceGroups operation.

Provides all available details about the instance groups in a cluster.

#### Examples

- Basic formatting example

      $result = $client->listInstanceGroups(array(
          // ClusterId is required
          'ClusterId' => 'string',
          'Marker' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ClusterId => (string)

    The identifier of the cluster for which to list the instance groups.

  - Marker => (string)

    The pagination token that indicates the next set of results to retrieve.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- InstanceGroups => (array<associative-array>)

  The list of instance groups for the cluster and given filters.

  - (associative-array)

    This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.

    - Id => (string)

      The identifier of the instance group.

    - Name => (string)

      The name of the instance group.

    - Market => (string)

      The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

    - InstanceGroupType => (string)

      The type of the instance group. Valid values are MASTER, CORE or TASK.

    - BidPrice => (string)

      The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

    - InstanceType => (string)

      The EC2 instance type for all instances in the instance group.

    - RequestedInstanceCount => (int)

      The target number of instances for the instance group.

    - RunningInstanceCount => (int)

      The number of instances currently running in this instance group.

    - Status => (associative-array)

      The current status of the instance group.

      - State => (string)

        The current state of the instance group.

      - StateChangeReason => (associative-array)

        The status change reason details for the instance group.

        - Code => (string)

          The programmable code for the state change reason.

        - Message => (string)

          The status change reason description.

      - Timeline => (associative-array)

        The timeline of the instance group status over time.

        - CreationDateTime => (string)

          The creation date and time of the instance group.

        - ReadyDateTime => (string)

          The date and time when the instance group became ready to perform tasks.

        - EndDateTime => (string)

          The date and time when the instance group terminated.

- Marker => (string)

  The pagination token that indicates the next set of results to retrieve.

# `public `Guzzle\Service\Resource\Model``
`listInstances( array $args = array() )`

Executes the ListInstances operation.

Provides information about the cluster instances that Amazon EMR provisions on behalf of a user when it creates the cluster. For example, this operation indicates when the EC2 instances reach the Ready state, when instances become available to Amazon EMR to use for jobs, and the IP addresses for cluster instances, etc.

#### Examples

- Basic formatting example

      $result = $client->listInstances(array(
          // ClusterId is required
          'ClusterId' => 'string',
          'InstanceGroupId' => 'string',
          'InstanceGroupTypes' => array('string', ... ),
          'Marker' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ClusterId => (string)

    The identifier of the cluster for which to list the instances.

  - InstanceGroupId => (string)

    The identifier of the instance group for which to list the instances.

  - InstanceGroupTypes => (array<string: MASTER | CORE | TASK >)

    The type of instance group for which to list the instances.

  - Marker => (string)

    The pagination token that indicates the next set of results to retrieve.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Instances => (array<associative-array>)

  The list of instances for the cluster and given filters.

  - (associative-array)

    Represents an EC2 instance provisioned as part of cluster.

    - Id => (string)

      The unique identifier for the instance in Amazon EMR.

    - Ec2InstanceId => (string)

      The unique identifier of the instance in Amazon EC2.

    - PublicDnsName => (string)

      The public DNS name of the instance.

    - PublicIpAddress => (string)

      The public IP address of the instance.

    - PrivateDnsName => (string)

      The private DNS name of the instance.

    - PrivateIpAddress => (string)

      The private IP address of the instance.

    - Status => (associative-array)

      The current status of the instance.

      - State => (string)

        The current state of the instance.

      - StateChangeReason => (associative-array)

        The details of the status change reason for the instance.

        - Code => (string)

          The programmable code for the state change reason.

        - Message => (string)

          The status change reason description.

      - Timeline => (associative-array)

        The timeline of the instance status over time.

        - CreationDateTime => (string)

          The creation date and time of the instance.

        - ReadyDateTime => (string)

          The date and time when the instance was ready to perform tasks.

        - EndDateTime => (string)

          The date and time when the instance was terminated.

- Marker => (string)

  The pagination token that indicates the next set of results to retrieve.

# `public `Guzzle\Service\Resource\Model``
`listSteps( array $args = array() )`

Executes the ListSteps operation.

Provides a list of steps for the cluster.

#### Examples

- Basic formatting example

      $result = $client->listSteps(array(
          // ClusterId is required
          'ClusterId' => 'string',
          'StepStates' => array('string', ... ),
          'StepIds' => array('string', ... ),
          'Marker' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ClusterId => (string)

    The identifier of the cluster for which to list the steps.

  - StepStates => (array<string: PENDING | RUNNING | COMPLETED | CANCELLED | FAILED | INTERRUPTED >)

    The filter to limit the step list based on certain states.

  - StepIds => (array<string>)

    The filter to limit the step list based on the identifier of the steps.

  - Marker => (string)

    The pagination token that indicates the next set of results to retrieve.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Steps => (array<associative-array>)

  The filtered list of steps for the cluster.

  - (associative-array)

    The summary of the cluster step.

    - Id => (string)

      The identifier of the cluster step.

    - Name => (string)

      The name of the cluster step.

    - Config => (associative-array)

      The Hadoop job configuration of the cluster step.

      - Jar => (string)

        The path to the JAR file that runs during the step.

      - Properties => (associative-array<string>)

        Associative array of <string> keys mapping to (string) values. Each array key should be changed to an appropriate <string>.

        The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.

        - <string> => (string)
      - MainClass => (string)

        The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.

      - Args => (array<string>)

        The list of command line arguments to pass to the JAR file's main function for execution.

    - ActionOnFailure => (string)

      This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.

    - Status => (associative-array)

      The current execution status details of the cluster step.

      - State => (string)

        The execution state of the cluster step.

      - StateChangeReason => (associative-array)

        The reason for the step execution status change.

        - Code => (string)

          The programmable code for the state change reason.

        - Message => (string)

          The descriptive message for the state change reason.

      - Timeline => (associative-array)

        The timeline of the cluster step status over time.

        - CreationDateTime => (string)

          The date and time when the cluster step was created.

        - StartDateTime => (string)

          The date and time when the cluster step execution started.

        - EndDateTime => (string)

          The date and time when the cluster step execution completed or failed.

- Marker => (string)

  The pagination token that indicates the next set of results to retrieve.

# `public `Guzzle\Service\Resource\Model``
`modifyInstanceGroups( array $args = array() )`

Executes the ModifyInstanceGroups operation.

ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.

#### Examples

- Basic formatting example

      $result = $client->modifyInstanceGroups(array(
          'InstanceGroups' => array(
              array(
                  // InstanceGroupId is required
                  'InstanceGroupId' => 'string',
                  'InstanceCount' => integer,
                  'EC2InstanceIdsToTerminate' => array('string', ... ),
              ),
              // ... repeated
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - InstanceGroups => (array<associative-array>)

    Instance groups to change.

    - (associative-array)

      Modify an instance group size.

      - InstanceGroupId => (string)

        Unique ID of the instance group to expand or shrink.

      - InstanceCount => (int)

        Target size for the instance group.

      - EC2InstanceIdsToTerminate => (array<string>)

        The EC2 InstanceIds to terminate. For advanced users only. Once you terminate the instances, the instance group will not return to its original requested size.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`removeTags( array $args = array() )`

Executes the RemoveTags operation.

Removes tags from an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

The following example removes the stack tag with value Prod from a cluster:

#### Examples

- Basic formatting example

      $result = $client->removeTags(array(
          // ResourceId is required
          'ResourceId' => 'string',
          // TagKeys is required
          'TagKeys' => array('string', ... ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - ResourceId => (string)

    The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.

  - TagKeys => (array<string>)

    A list of tag keys to remove from a resource.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`runJobFlow( array $args = array() )`

Executes the RunJobFlow operation.

RunJobFlow creates and starts running a new job flow. The job flow will run the steps specified. Once the job flow completes, the cluster is stopped and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig KeepJobFlowAliveWhenNoSteps parameter is set to TRUE , the job flow will transition to the WAITING state rather than shutting down once the steps have completed.

For additional protection, you can set the JobFlowInstancesConfig TerminationProtected parameter to TRUE to lock the job flow and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.

A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide.

For long running job flows, we recommend that you periodically store your results.

#### Examples

- Basic formatting example

      $result = $client->runJobFlow(array(
          // Name is required
          'Name' => 'string',
          'LogUri' => 'string',
          'AdditionalInfo' => 'string',
          'AmiVersion' => 'string',
          // Instances is required
          'Instances' => array(
              'MasterInstanceType' => 'string',
              'SlaveInstanceType' => 'string',
              'InstanceCount' => integer,
              'InstanceGroups' => array(
                  array(
                      'Name' => 'string',
                      'Market' => 'string',
                      // InstanceRole is required
                      'InstanceRole' => 'string',
                      'BidPrice' => 'string',
                      // InstanceType is required
                      'InstanceType' => 'string',
                      // InstanceCount is required
                      'InstanceCount' => integer,
                  ),
                  // ... repeated
              ),
              'Ec2KeyName' => 'string',
              'Placement' => array(
                  // AvailabilityZone is required
                  'AvailabilityZone' => 'string',
              ),
              'KeepJobFlowAliveWhenNoSteps' => true || false,
              'TerminationProtected' => true || false,
              'HadoopVersion' => 'string',
              'Ec2SubnetId' => 'string',
              'EmrManagedMasterSecurityGroup' => 'string',
              'EmrManagedSlaveSecurityGroup' => 'string',
              'AdditionalMasterSecurityGroups' => array('string', ... ),
              'AdditionalSlaveSecurityGroups' => array('string', ... ),
          ),
          'Steps' => array(
              array(
                  // Name is required
                  'Name' => 'string',
                  'ActionOnFailure' => 'string',
                  // HadoopJarStep is required
                  'HadoopJarStep' => array(
                      'Properties' => array(
                          array(
                              'Key' => 'string',
                              'Value' => 'string',
                          ),
                          // ... repeated
                      ),
                      // Jar is required
                      'Jar' => 'string',
                      'MainClass' => 'string',
                      'Args' => array('string', ... ),
                  ),
              ),
              // ... repeated
          ),
          'BootstrapActions' => array(
              array(
                  // Name is required
                  'Name' => 'string',
                  // ScriptBootstrapAction is required
                  'ScriptBootstrapAction' => array(
                      // Path is required
                      'Path' => 'string',
                      'Args' => array('string', ... ),
                  ),
              ),
              // ... repeated
          ),
          'SupportedProducts' => array('string', ... ),
          'NewSupportedProducts' => array(
              array(
                  'Name' => 'string',
                  'Args' => array('string', ... ),
              ),
              // ... repeated
          ),
          'VisibleToAllUsers' => true || false,
          'JobFlowRole' => 'string',
          'ServiceRole' => 'string',
          'Tags' => array(
              array(
                  'Key' => 'string',
                  'Value' => 'string',
              ),
              // ... repeated
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - Name => (string)

    The name of the job flow.

  - LogUri => (string)

    The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.

  - AdditionalInfo => (string)

    A JSON string for selecting additional features.

  - AmiVersion => (string)

    The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

    - "latest" (uses the latest AMI)
    - The version number of the AMI to use, for example, "2.0"

    If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

    For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

  - Instances => (associative-array)

    A specification of the number and type of Amazon EC2 instances on which to run the job flow.

    - MasterInstanceType => (string)

      The EC2 instance type of the master node.

    - SlaveInstanceType => (string)

      The EC2 instance type of the slave nodes.

    - InstanceCount => (int)

      The number of Amazon EC2 instances used to execute the job flow.

    - InstanceGroups => (array<associative-array>)

      Configuration for the job flow's instance groups.

      - (associative-array)

        Configuration defining a new instance group.

        - Name => (string)

          Friendly name given to the instance group.

        - Market => (string: ON_DEMAND | SPOT )

          Market type of the Amazon EC2 instances used to create a cluster node.

        - InstanceRole => (string: MASTER | CORE | TASK )

          The role of the instance group in the cluster.

        - BidPrice => (string)

          Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

        - InstanceType => (string)

          The Amazon EC2 instance type for all instances in the instance group.

        - InstanceCount => (int)

          Target number of instances for the instance group.

    - Ec2KeyName => (string)

      The name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

    - Placement => (associative-array)

      The Availability Zone the job flow will run in.

      - AvailabilityZone => (string)

        The Amazon EC2 Availability Zone for the job flow.

    - KeepJobFlowAliveWhenNoSteps => (bool)

      Specifies whether the job flow should terminate after completing all steps.

    - TerminationProtected => (bool)

      Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

    - HadoopVersion => (string)

      The Hadoop version for the job flow. Valid inputs are "0.18", "0.20", "0.20.205", "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

    - Ec2SubnetId => (string)

      To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

      Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

    - EmrManagedMasterSecurityGroup => (string)

      The identifier of the Amazon EC2 security group (managed by Amazon ElasticMapReduce) for the master node.

    - EmrManagedSlaveSecurityGroup => (string)

      The identifier of the Amazon EC2 security group (managed by Amazon ElasticMapReduce) for the slave nodes.

    - AdditionalMasterSecurityGroups => (array<string>)

      A list of additional Amazon EC2 security group IDs for the master node.

    - AdditionalSlaveSecurityGroups => (array<string>)

      A list of additional Amazon EC2 security group IDs for the slave nodes.

  - Steps => (array<associative-array>)

    A list of steps to be executed by the job flow.

    - (associative-array)

      Specification of a job flow step.

      - Name => (string)

        The name of the job flow step.

      - ActionOnFailure => (string: TERMINATE_JOB_FLOW | TERMINATE_CLUSTER | CANCEL_AND_WAIT | CONTINUE )

        The action to take if the job flow step fails.

      - HadoopJarStep => (associative-array)

        The JAR file used for the job flow step.

        - Properties => (array<associative-array>)

          A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.

          - (associative-array)

            A key value pair.

            - Key => (string)

              The unique identifier of a key value pair.

            - Value => (string)

              The value part of the identified key.

        - Jar => (string)

          A path to a JAR file run during the step.

        - MainClass => (string)

          The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.

        - Args => (array<string>)

          A list of command line arguments passed to the JAR file's main function when executed.

  - BootstrapActions => (array<associative-array>)

    A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.

    - (associative-array)

      Configuration of a bootstrap action.

      - Name => (string)

        The name of the bootstrap action.

      - ScriptBootstrapAction => (associative-array)

        The script run by the bootstrap action.

        - Path => (string)

          Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

        - Args => (array<string>)

          A list of command line arguments to pass to the bootstrap action script.

  - SupportedProducts => (array<string>)

    A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

    - "mapr-m3" - launch the job flow using MapR M3 Edition.
    - "mapr-m5" - launch the job flow using MapR M5 Edition.
  - NewSupportedProducts => (array<associative-array>)

    A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

    - "mapr-m3" - launch the job flow using MapR M3 Edition.
    - "mapr-m5" - launch the job flow using MapR M5 Edition.
    - "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
    - (associative-array)

      The list of supported product configurations which allow user-supplied arguments. EMR accepts these arguments and forwards them to the corresponding installation script as bootstrap action arguments.

      - Name => (string)

        The name of the product configuration.

      - Args => (array<string>)

        The list of user-supplied arguments.

  - VisibleToAllUsers => (bool)

    Whether the job flow is 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 policy permissions set) manage the job flow. If it is set to false, only the IAM user that created the job flow can view and manage it.

  - JobFlowRole => (string)

    An IAM role for the job flow. The EC2 instances of the job flow assume this role. The default role is EMRJobflowDefault. In order to use the default role, you must have already created it using the CLI.

  - ServiceRole => (string)

    The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

  - Tags => (array<associative-array>)

    A list of tags to associate with a cluster and propagate to Amazon EC2 instances.

    - (associative-array)

      A key/value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clu\ sters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

      - Key => (string)

        A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.

      - Value => (string)

        A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- JobFlowId => (string)

  An unique identifier for the job flow.

# `public `Guzzle\Service\Resource\Model``
`setTerminationProtection( array $args = array() )`

Executes the SetTerminationProtection operation.

SetTerminationProtection locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a job flow is analogous to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances in a cluster.

SetTerminationProtection is used to prevent accidental termination of a job flow and to ensure that in the event of an error, the instances will persist so you can recover any data stored in their ephemeral instance storage.

To terminate a job flow that has been locked by setting SetTerminationProtection to true , you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false .

For more information, go to Protecting a Job Flow from Termination in the Amazon Elastic MapReduce Developer's Guide.

#### Examples

- Basic formatting example

      $result = $client->setTerminationProtection(array(
          // JobFlowIds is required
          'JobFlowIds' => array('string', ... ),
          // TerminationProtected is required
          'TerminationProtected' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - JobFlowIds => (array<string>)

    A list of strings that uniquely identify the job flows to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .

  - TerminationProtected => (bool)

    A Boolean that indicates whether to protect the job flow and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`setVisibleToAllUsers( array $args = array() )`

Executes the SetVisibleToAllUsers operation.

Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specified 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.

#### Examples

- Basic formatting example

      $result = $client->setVisibleToAllUsers(array(
          // JobFlowIds is required
          'JobFlowIds' => array('string', ... ),
          // VisibleToAllUsers is required
          'VisibleToAllUsers' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - JobFlowIds => (array<string>)

    Identifiers of the job flows to receive the new visibility setting.

  - VisibleToAllUsers => (bool)

    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.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`terminateJobFlows( array $args = array() )`

Executes the TerminateJobFlows operation.

TerminateJobFlows shuts a list of job flows down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the job flow is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the job flow was created.

The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the job flow, it may take up to 5-20 minutes for the job flow to completely terminate and release allocated resources, such as Amazon EC2 instances.

#### Examples

- Basic formatting example

      $result = $client->terminateJobFlows(array(
          // JobFlowIds is required
          'JobFlowIds' => array('string', ... ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - JobFlowIds => (array<string>)

    A list of job flows to be shutdown.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getDescribeJobFlowsIterator( array $args = array() )`

The input array uses the parameters of the DescribeJobFlows operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListBootstrapActionsIterator( array $args = array() )`

The input array uses the parameters of the ListBootstrapActions operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListClustersIterator( array $args = array() )`

The input array uses the parameters of the ListClusters operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListInstanceGroupsIterator( array $args = array() )`

The input array uses the parameters of the ListInstanceGroups operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListInstancesIterator( array $args = array() )`

The input array uses the parameters of the ListInstances operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListStepsIterator( array $args = array() )`

The input array uses the parameters of the ListSteps operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``

### Methods inherited from Aws\Common\Client\AbstractClient

`__call()`, `__construct()`, `createRequest()`, `getAllEvents()`, `getApiVersion()`, `getCredentials()`, `getRegion()`, `getRegions()`, `getSignature()`, `getWaiter()`, `getWaiterFactory()`, `send()`, `setCredentials()`, `setRegion()`, `setWaiterFactory()`, `waitUntil()`

### Methods inherited from Guzzle\Service\Client

`execute()`, `executeMultiple()`, `getCommand()`, `getCommandFactory()`, `getDescription()`, `getInflector()`, `getIterator()`, `getResourceIteratorFactory()`, `prepareCommand()`, `setCommandFactory()`, `setDescription()`, `setInflector()`, `setResourceIteratorFactory()`

### Methods inherited from Guzzle\Http\Client

`delete()`, `expandTemplate()`, `extractPharCacert()`, `get()`, `getBaseUrl()`, `getConfig()`, `getCurlMulti()`, `getDefaultOption()`, `getDefaultUserAgent()`, `getUriTemplate()`, `head()`, `initSsl()`, `options()`, `patch()`, `post()`, `prepareRequest()`, `put()`, `sendMultiple()`, `setBaseUrl()`, `setConfig()`, `setCurlMulti()`, `setDefaultOption()`, `setRequestFactory()`, `setSslVerification()`, `setUriTemplate()`, `setUserAgent()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

`string` | `LATEST_API_VERSION` | `'2009-03-31'` | #

### Constants inherited from Guzzle\Service\Client

`COMMAND_PARAMS`

### Constants inherited from Guzzle\Http\Client

`CURL_OPTIONS`, `DEFAULT_SELECT_TIMEOUT`, `DISABLE_REDIRECTS`, `MAX_HANDLES`, `REQUEST_OPTIONS`, `SSL_CERT_AUTHORITY`

### Constants inherited from Guzzle\Http\ClientInterface

`CREATE_REQUEST`, `HTTP_DATE`

## Properties summary

### Properties inherited from Aws\Common\Client\AbstractClient

`$aggregator`, `$credentials`, `$signature`, `$waiterFactory`

### Properties inherited from Guzzle\Service\Client

`$commandFactory`, `$inflector`, `$resourceIteratorFactory`, `$serviceDescription`

### Properties inherited from Guzzle\Http\Client

`$defaultHeaders`, `$requestFactory`, `$userAgent`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`