Paws::EMR::RunJobFlow - Arguments for method RunJobFlow on Paws::EMR
This class represents the parameters used for calling the method RunJobFlow on the Amazon Elastic MapReduce service. Use the attributes of this class as arguments to method RunJobFlow.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RunJobFlow.
my $elasticmapreduce = Paws->service('EMR'); my $RunJobFlowOutput = $elasticmapreduce->RunJobFlow( Instances => { AdditionalMasterSecurityGroups => [ 'MyXmlStringMaxLen256', ... # max: 256 ], # OPTIONAL AdditionalSlaveSecurityGroups => [ 'MyXmlStringMaxLen256', ... # max: 256 ], # OPTIONAL Ec2KeyName => 'MyXmlStringMaxLen256', # max: 256 Ec2SubnetId => 'MyXmlStringMaxLen256', # max: 256 Ec2SubnetIds => [ 'MyXmlStringMaxLen256', ... # max: 256 ], # OPTIONAL EmrManagedMasterSecurityGroup => 'MyXmlStringMaxLen256', # max: 256 EmrManagedSlaveSecurityGroup => 'MyXmlStringMaxLen256', # max: 256 HadoopVersion => 'MyXmlStringMaxLen256', # max: 256 InstanceCount => 1, # OPTIONAL InstanceFleets => [ { InstanceFleetType => 'MASTER', # values: MASTER, CORE, TASK InstanceTypeConfigs => [ { InstanceType => 'MyInstanceType', # min: 1, max: 256 BidPrice => 'MyXmlStringMaxLen256', # max: 256 BidPriceAsPercentageOfOnDemandPrice => 1, # OPTIONAL Configurations => [ { Classification => 'MyString', # OPTIONAL Configurations => <ConfigurationList>, Properties => { 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL }, # OPTIONAL }, ... ], # OPTIONAL EbsConfiguration => { EbsBlockDeviceConfigs => [ { VolumeSpecification => { SizeInGB => 1, # OPTIONAL VolumeType => 'MyString', # OPTIONAL Iops => 1, # OPTIONAL }, VolumesPerInstance => 1, # OPTIONAL }, ... ], # OPTIONAL EbsOptimized => 1, # OPTIONAL }, # OPTIONAL WeightedCapacity => 1, # OPTIONAL }, ... ], # OPTIONAL LaunchSpecifications => { OnDemandSpecification => { AllocationStrategy => 'lowest-price', # values: lowest-price CapacityReservationOptions => { CapacityReservationPreference => 'open', # values: open, none; OPTIONAL CapacityReservationResourceGroupArn => 'MyXmlStringMaxLen256', # max: 256 UsageStrategy => 'use-capacity-reservations-first' , # values: use-capacity-reservations-first; OPTIONAL }, # OPTIONAL }, # OPTIONAL SpotSpecification => { TimeoutAction => 'SWITCH_TO_ON_DEMAND' , # values: SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER TimeoutDurationMinutes => 1, # OPTIONAL AllocationStrategy => 'capacity-optimized', # values: capacity-optimized; OPTIONAL BlockDurationMinutes => 1, # OPTIONAL }, # OPTIONAL }, # OPTIONAL Name => 'MyXmlStringMaxLen256', # max: 256 TargetOnDemandCapacity => 1, # OPTIONAL TargetSpotCapacity => 1, # OPTIONAL }, ... ], # OPTIONAL InstanceGroups => [ { InstanceCount => 1, # OPTIONAL InstanceRole => 'MASTER', # values: MASTER, CORE, TASK InstanceType => 'MyInstanceType', # min: 1, max: 256 AutoScalingPolicy => { Constraints => { MaxCapacity => 1, # OPTIONAL MinCapacity => 1, # OPTIONAL }, Rules => [ { Action => { SimpleScalingPolicyConfiguration => { ScalingAdjustment => 1, # OPTIONAL AdjustmentType => 'CHANGE_IN_CAPACITY' , # values: CHANGE_IN_CAPACITY, PERCENT_CHANGE_IN_CAPACITY, EXACT_CAPACITY; OPTIONAL CoolDown => 1, # OPTIONAL }, Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL }, Name => 'MyString', # OPTIONAL Trigger => { CloudWatchAlarmDefinition => { ComparisonOperator => 'GREATER_THAN_OR_EQUAL' , # values: GREATER_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, LESS_THAN_OR_EQUAL MetricName => 'MyString', # OPTIONAL Period => 1, # OPTIONAL Threshold => 1, # OPTIONAL Dimensions => [ { Key => 'MyString', # OPTIONAL Value => 'MyString', # OPTIONAL }, ... ], # OPTIONAL EvaluationPeriods => 1, # OPTIONAL Namespace => 'MyString', # OPTIONAL Statistic => 'SAMPLE_COUNT' , # values: SAMPLE_COUNT, AVERAGE, SUM, MINIMUM, MAXIMUM; OPTIONAL Unit => 'NONE' , # values: NONE, SECONDS, MICRO_SECONDS, MILLI_SECONDS, BYTES, KILO_BYTES, MEGA_BYTES, GIGA_BYTES, TERA_BYTES, BITS, KILO_BITS, MEGA_BITS, GIGA_BITS, TERA_BITS, PERCENT, COUNT, BYTES_PER_SECOND, KILO_BYTES_PER_SECOND, MEGA_BYTES_PER_SECOND, GIGA_BYTES_PER_SECOND, TERA_BYTES_PER_SECOND, BITS_PER_SECOND, KILO_BITS_PER_SECOND, MEGA_BITS_PER_SECOND, GIGA_BITS_PER_SECOND, TERA_BITS_PER_SECOND, COUNT_PER_SECOND; OPTIONAL }, }, Description => 'MyString', # OPTIONAL }, ... ], }, # OPTIONAL BidPrice => 'MyXmlStringMaxLen256', # max: 256 Configurations => [ { Classification => 'MyString', # OPTIONAL Configurations => <ConfigurationList>, Properties => { 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL }, # OPTIONAL }, ... ], # OPTIONAL EbsConfiguration => { EbsBlockDeviceConfigs => [ { VolumeSpecification => { SizeInGB => 1, # OPTIONAL VolumeType => 'MyString', # OPTIONAL Iops => 1, # OPTIONAL }, VolumesPerInstance => 1, # OPTIONAL }, ... ], # OPTIONAL EbsOptimized => 1, # OPTIONAL }, # OPTIONAL Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL Name => 'MyXmlStringMaxLen256', # max: 256 }, ... ], # OPTIONAL KeepJobFlowAliveWhenNoSteps => 1, # OPTIONAL MasterInstanceType => 'MyInstanceType', # min: 1, max: 256 Placement => { AvailabilityZone => 'MyXmlString', # max: 10280; OPTIONAL AvailabilityZones => [ 'MyXmlStringMaxLen256', ... # max: 256 ], # OPTIONAL }, # OPTIONAL ServiceAccessSecurityGroup => 'MyXmlStringMaxLen256', # max: 256 SlaveInstanceType => 'MyInstanceType', # min: 1, max: 256 TerminationProtected => 1, # OPTIONAL }, Name => 'MyXmlStringMaxLen256', AdditionalInfo => 'MyXmlString', # OPTIONAL AmiVersion => 'MyXmlStringMaxLen256', # OPTIONAL Applications => [ { AdditionalInfo => { 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL }, # OPTIONAL Args => [ 'MyString', ... # OPTIONAL ], # OPTIONAL Name => 'MyString', # OPTIONAL Version => 'MyString', # OPTIONAL }, ... ], # OPTIONAL AutoScalingRole => 'MyXmlString', # OPTIONAL BootstrapActions => [ { Name => 'MyXmlStringMaxLen256', # max: 256 ScriptBootstrapAction => { Path => 'MyXmlString', # max: 10280; OPTIONAL Args => [ 'MyXmlString', ... # max: 10280; OPTIONAL ], # OPTIONAL }, }, ... ], # OPTIONAL Configurations => [ { Classification => 'MyString', # OPTIONAL Configurations => <ConfigurationList>, Properties => { 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL }, # OPTIONAL }, ... ], # OPTIONAL CustomAmiId => 'MyXmlStringMaxLen256', # OPTIONAL EbsRootVolumeSize => 1, # OPTIONAL JobFlowRole => 'MyXmlString', # OPTIONAL KerberosAttributes => { KdcAdminPassword => 'MyXmlStringMaxLen256', # max: 256 Realm => 'MyXmlStringMaxLen256', # max: 256 ADDomainJoinPassword => 'MyXmlStringMaxLen256', # max: 256 ADDomainJoinUser => 'MyXmlStringMaxLen256', # max: 256 CrossRealmTrustPrincipalPassword => 'MyXmlStringMaxLen256', # max: 256 }, # OPTIONAL LogEncryptionKmsKeyId => 'MyXmlString', # OPTIONAL LogUri => 'MyXmlString', # OPTIONAL ManagedScalingPolicy => { ComputeLimits => { MaximumCapacityUnits => 1, # OPTIONAL MinimumCapacityUnits => 1, # OPTIONAL UnitType => 'InstanceFleetUnits', # values: InstanceFleetUnits, Instances, VCPU MaximumCoreCapacityUnits => 1, # OPTIONAL MaximumOnDemandCapacityUnits => 1, # OPTIONAL }, # OPTIONAL }, # OPTIONAL NewSupportedProducts => [ { Args => [ 'MyXmlString', ... # max: 10280; OPTIONAL ], # OPTIONAL Name => 'MyXmlStringMaxLen256', # max: 256 }, ... ], # OPTIONAL PlacementGroupConfigs => [ { InstanceRole => 'MASTER', # values: MASTER, CORE, TASK PlacementStrategy => 'SPREAD', # values: SPREAD, PARTITION, CLUSTER, NONE; OPTIONAL }, ... ], # OPTIONAL ReleaseLabel => 'MyXmlStringMaxLen256', # OPTIONAL RepoUpgradeOnBoot => 'SECURITY', # OPTIONAL ScaleDownBehavior => 'TERMINATE_AT_INSTANCE_HOUR', # OPTIONAL SecurityConfiguration => 'MyXmlString', # OPTIONAL ServiceRole => 'MyXmlString', # OPTIONAL StepConcurrencyLevel => 1, # OPTIONAL Steps => [ { HadoopJarStep => { Jar => 'MyXmlString', # max: 10280; OPTIONAL Args => [ 'MyXmlString', ... # max: 10280; OPTIONAL ], # OPTIONAL MainClass => 'MyXmlString', # max: 10280; OPTIONAL Properties => [ { Key => 'MyXmlString', # max: 10280; OPTIONAL Value => 'MyXmlString', # max: 10280; OPTIONAL }, ... ], # OPTIONAL }, Name => 'MyXmlStringMaxLen256', # max: 256 ActionOnFailure => 'TERMINATE_JOB_FLOW' , # values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE; OPTIONAL }, ... ], # OPTIONAL SupportedProducts => [ 'MyXmlStringMaxLen256', ... # max: 256 ], # OPTIONAL Tags => [ { Key => 'MyString', # OPTIONAL Value => 'MyString', # OPTIONAL }, ... ], # OPTIONAL VisibleToAllUsers => 1, # OPTIONAL ); # Results: my $ClusterArn = $RunJobFlowOutput->ClusterArn; my $JobFlowId = $RunJobFlowOutput->JobFlowId; # Returns a L<Paws::EMR::RunJobFlowOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce/RunJobFlow
A JSON string for selecting additional features.
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel is used. To specify a custom AMI, use CustomAmiID.
ReleaseLabel
CustomAmiID
Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each Amazon EMR release version, see the Amazon EMR Release Guide (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/).
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an instance group.
EMR_AutoScaling_DefaultRole
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about custom AMIs in Amazon EMR, see Using a Custom AMI (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-custom-ami.html) in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the ReleaseLabel specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion instead.
AmiVersion
For information about creating a custom AMI, see Creating an Amazon EBS-Backed Linux AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about finding an AMI ID, see Finding a Linux AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html).
The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance. Available in Amazon EMR version 4.x and later.
A specification of the number and type of Amazon EC2 instances.
Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole. In order to use the default role, you must have already created it using the CLI or console.
EMR_EC2_DefaultRole
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see Use Kerberos Authentication (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html) in the Amazon EMR Management Guide.
The AWS KMS customer master key (CMK) used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
The specified managed scaling policy for an Amazon EMR cluster.
The name of the job flow.
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
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" in the Amazon EMR Developer Guide (https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). Supported values are:
"mapr-m3" - launch the cluster using MapR M3 Edition.
"mapr-m5" - launch the cluster 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.
"mapr-m7" - launch the cluster using MapR M7 Edition.
"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
"hue"- launch the cluster with Hue installed.
"spark" - launch the cluster with Apache Spark installed.
"ganglia" - launch the cluster with the Ganglia Monitoring System installed.
The specified placement group configuration for an Amazon EMR cluster.
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form emr-x.x.x, where x.x.x is an Amazon EMR release version such as emr-5.14.0. For more information about Amazon EMR release versions and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/ (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/). The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use AmiVersion.
emr-x.x.x
emr-5.14.0
Applies only when CustomAmiID is used. Specifies which updates from the Amazon Linux AMI package repositories to apply automatically when the instance boots using the AMI. If omitted, the default is SECURITY, which indicates that only security updates are applied. If NONE is specified, no updates are applied, and all updates must be applied manually.
SECURITY
NONE
Valid values are: "SECURITY", "NONE"
"SECURITY"
"NONE"
Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.
TERMINATE_AT_INSTANCE_HOUR
TERMINATE_AT_TASK_COMPLETION
Valid values are: "TERMINATE_AT_INSTANCE_HOUR", "TERMINATE_AT_TASK_COMPLETION"
"TERMINATE_AT_INSTANCE_HOUR"
"TERMINATE_AT_TASK_COMPLETION"
The name of a security configuration to apply to the cluster.
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
Specifies the number of steps that can be executed concurrently. The default value is 1. The maximum value is 256.
1
256
A list of steps to run.
A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide (https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). Currently supported values are:
"mapr-m3" - launch the job flow using MapR M3 Edition.
"mapr-m5" - launch the job flow using MapR M5 Edition.
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
A value of true indicates that all IAM users in the AWS account can perform cluster actions if they have the proper IAM policy permissions. This is the default. A value of false indicates that only the IAM user who created the cluster can perform actions.
true
false
This class forms part of Paws, documenting arguments for method RunJobFlow in Paws::EMR
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.