| 1 | |||
| 2 | package Paws::EMR::RunJobFlow; | ||
| 3 | use Moose; | ||
| 4 | has AdditionalInfo => (is => 'ro', isa => 'Str'); | ||
| 5 | has AmiVersion => (is => 'ro', isa => 'Str'); | ||
| 6 | has Applications => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Application]'); | ||
| 7 | has AutoScalingRole => (is => 'ro', isa => 'Str'); | ||
| 8 | has BootstrapActions => (is => 'ro', isa => 'ArrayRef[Paws::EMR::BootstrapActionConfig]'); | ||
| 9 | has Configurations => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Configuration]'); | ||
| 10 | has CustomAmiId => (is => 'ro', isa => 'Str'); | ||
| 11 | has EbsRootVolumeSize => (is => 'ro', isa => 'Int'); | ||
| 12 | has Instances => (is => 'ro', isa => 'Paws::EMR::JobFlowInstancesConfig', required => 1); | ||
| 13 | has JobFlowRole => (is => 'ro', isa => 'Str'); | ||
| 14 | has KerberosAttributes => (is => 'ro', isa => 'Paws::EMR::KerberosAttributes'); | ||
| 15 | has LogEncryptionKmsKeyId => (is => 'ro', isa => 'Str'); | ||
| 16 | has LogUri => (is => 'ro', isa => 'Str'); | ||
| 17 | has ManagedScalingPolicy => (is => 'ro', isa => 'Paws::EMR::ManagedScalingPolicy'); | ||
| 18 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 19 | has NewSupportedProducts => (is => 'ro', isa => 'ArrayRef[Paws::EMR::SupportedProductConfig]'); | ||
| 20 | has PlacementGroupConfigs => (is => 'ro', isa => 'ArrayRef[Paws::EMR::PlacementGroupConfig]'); | ||
| 21 | has ReleaseLabel => (is => 'ro', isa => 'Str'); | ||
| 22 | has RepoUpgradeOnBoot => (is => 'ro', isa => 'Str'); | ||
| 23 | has ScaleDownBehavior => (is => 'ro', isa => 'Str'); | ||
| 24 | has SecurityConfiguration => (is => 'ro', isa => 'Str'); | ||
| 25 | has ServiceRole => (is => 'ro', isa => 'Str'); | ||
| 26 | has StepConcurrencyLevel => (is => 'ro', isa => 'Int'); | ||
| 27 | has Steps => (is => 'ro', isa => 'ArrayRef[Paws::EMR::StepConfig]'); | ||
| 28 | has SupportedProducts => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 29 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Tag]'); | ||
| 30 | has VisibleToAllUsers => (is => 'ro', isa => 'Bool'); | ||
| 31 | |||
| 32 | use MooseX::ClassAttribute; | ||
| 33 | |||
| 34 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'RunJobFlow'); | ||
| 35 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EMR::RunJobFlowOutput'); | ||
| 36 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 37 | 1; | ||
| 38 | |||
| 39 | ### main pod documentation begin ### | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | Paws::EMR::RunJobFlow - Arguments for method RunJobFlow on L<Paws::EMR> | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | This class represents the parameters used for calling the method RunJobFlow on the | ||
| 48 | L<Amazon Elastic MapReduce|Paws::EMR> service. Use the attributes of this class | ||
| 49 | as arguments to method RunJobFlow. | ||
| 50 | |||
| 51 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RunJobFlow. | ||
| 52 | |||
| 53 | =head1 SYNOPSIS | ||
| 54 | |||
| 55 | my $elasticmapreduce = Paws->service('EMR'); | ||
| 56 | my $RunJobFlowOutput = $elasticmapreduce->RunJobFlow( | ||
| 57 | Instances => { | ||
| 58 | AdditionalMasterSecurityGroups => [ | ||
| 59 | 'MyXmlStringMaxLen256', ... # max: 256 | ||
| 60 | ], # OPTIONAL | ||
| 61 | AdditionalSlaveSecurityGroups => [ | ||
| 62 | 'MyXmlStringMaxLen256', ... # max: 256 | ||
| 63 | ], # OPTIONAL | ||
| 64 | Ec2KeyName => 'MyXmlStringMaxLen256', # max: 256 | ||
| 65 | Ec2SubnetId => 'MyXmlStringMaxLen256', # max: 256 | ||
| 66 | Ec2SubnetIds => [ | ||
| 67 | 'MyXmlStringMaxLen256', ... # max: 256 | ||
| 68 | ], # OPTIONAL | ||
| 69 | EmrManagedMasterSecurityGroup => 'MyXmlStringMaxLen256', # max: 256 | ||
| 70 | EmrManagedSlaveSecurityGroup => 'MyXmlStringMaxLen256', # max: 256 | ||
| 71 | HadoopVersion => 'MyXmlStringMaxLen256', # max: 256 | ||
| 72 | InstanceCount => 1, # OPTIONAL | ||
| 73 | InstanceFleets => [ | ||
| 74 | { | ||
| 75 | InstanceFleetType => 'MASTER', # values: MASTER, CORE, TASK | ||
| 76 | InstanceTypeConfigs => [ | ||
| 77 | { | ||
| 78 | InstanceType => 'MyInstanceType', # min: 1, max: 256 | ||
| 79 | BidPrice => 'MyXmlStringMaxLen256', # max: 256 | ||
| 80 | BidPriceAsPercentageOfOnDemandPrice => 1, # OPTIONAL | ||
| 81 | Configurations => [ | ||
| 82 | { | ||
| 83 | Classification => 'MyString', # OPTIONAL | ||
| 84 | Configurations => <ConfigurationList>, | ||
| 85 | Properties => { | ||
| 86 | 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL | ||
| 87 | }, # OPTIONAL | ||
| 88 | }, | ||
| 89 | ... | ||
| 90 | ], # OPTIONAL | ||
| 91 | EbsConfiguration => { | ||
| 92 | EbsBlockDeviceConfigs => [ | ||
| 93 | { | ||
| 94 | VolumeSpecification => { | ||
| 95 | SizeInGB => 1, # OPTIONAL | ||
| 96 | VolumeType => 'MyString', # OPTIONAL | ||
| 97 | Iops => 1, # OPTIONAL | ||
| 98 | }, | ||
| 99 | VolumesPerInstance => 1, # OPTIONAL | ||
| 100 | }, | ||
| 101 | ... | ||
| 102 | ], # OPTIONAL | ||
| 103 | EbsOptimized => 1, # OPTIONAL | ||
| 104 | }, # OPTIONAL | ||
| 105 | WeightedCapacity => 1, # OPTIONAL | ||
| 106 | }, | ||
| 107 | ... | ||
| 108 | ], # OPTIONAL | ||
| 109 | LaunchSpecifications => { | ||
| 110 | OnDemandSpecification => { | ||
| 111 | AllocationStrategy => 'lowest-price', # values: lowest-price | ||
| 112 | CapacityReservationOptions => { | ||
| 113 | CapacityReservationPreference => | ||
| 114 | 'open', # values: open, none; OPTIONAL | ||
| 115 | CapacityReservationResourceGroupArn => | ||
| 116 | 'MyXmlStringMaxLen256', # max: 256 | ||
| 117 | UsageStrategy => 'use-capacity-reservations-first' | ||
| 118 | , # values: use-capacity-reservations-first; OPTIONAL | ||
| 119 | }, # OPTIONAL | ||
| 120 | }, # OPTIONAL | ||
| 121 | SpotSpecification => { | ||
| 122 | TimeoutAction => 'SWITCH_TO_ON_DEMAND' | ||
| 123 | , # values: SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER | ||
| 124 | TimeoutDurationMinutes => 1, # OPTIONAL | ||
| 125 | AllocationStrategy => | ||
| 126 | 'capacity-optimized', # values: capacity-optimized; OPTIONAL | ||
| 127 | BlockDurationMinutes => 1, # OPTIONAL | ||
| 128 | }, # OPTIONAL | ||
| 129 | }, # OPTIONAL | ||
| 130 | Name => 'MyXmlStringMaxLen256', # max: 256 | ||
| 131 | TargetOnDemandCapacity => 1, # OPTIONAL | ||
| 132 | TargetSpotCapacity => 1, # OPTIONAL | ||
| 133 | }, | ||
| 134 | ... | ||
| 135 | ], # OPTIONAL | ||
| 136 | InstanceGroups => [ | ||
| 137 | { | ||
| 138 | InstanceCount => 1, # OPTIONAL | ||
| 139 | InstanceRole => 'MASTER', # values: MASTER, CORE, TASK | ||
| 140 | InstanceType => 'MyInstanceType', # min: 1, max: 256 | ||
| 141 | AutoScalingPolicy => { | ||
| 142 | Constraints => { | ||
| 143 | MaxCapacity => 1, # OPTIONAL | ||
| 144 | MinCapacity => 1, # OPTIONAL | ||
| 145 | |||
| 146 | }, | ||
| 147 | Rules => [ | ||
| 148 | { | ||
| 149 | Action => { | ||
| 150 | SimpleScalingPolicyConfiguration => { | ||
| 151 | ScalingAdjustment => 1, # OPTIONAL | ||
| 152 | AdjustmentType => 'CHANGE_IN_CAPACITY' | ||
| 153 | , # values: CHANGE_IN_CAPACITY, PERCENT_CHANGE_IN_CAPACITY, EXACT_CAPACITY; OPTIONAL | ||
| 154 | CoolDown => 1, # OPTIONAL | ||
| 155 | }, | ||
| 156 | Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL | ||
| 157 | }, | ||
| 158 | Name => 'MyString', # OPTIONAL | ||
| 159 | Trigger => { | ||
| 160 | CloudWatchAlarmDefinition => { | ||
| 161 | ComparisonOperator => 'GREATER_THAN_OR_EQUAL' | ||
| 162 | , # values: GREATER_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, LESS_THAN_OR_EQUAL | ||
| 163 | MetricName => 'MyString', # OPTIONAL | ||
| 164 | Period => 1, # OPTIONAL | ||
| 165 | Threshold => 1, # OPTIONAL | ||
| 166 | Dimensions => [ | ||
| 167 | { | ||
| 168 | Key => 'MyString', # OPTIONAL | ||
| 169 | Value => 'MyString', # OPTIONAL | ||
| 170 | }, | ||
| 171 | ... | ||
| 172 | ], # OPTIONAL | ||
| 173 | EvaluationPeriods => 1, # OPTIONAL | ||
| 174 | Namespace => 'MyString', # OPTIONAL | ||
| 175 | Statistic => 'SAMPLE_COUNT' | ||
| 176 | , # values: SAMPLE_COUNT, AVERAGE, SUM, MINIMUM, MAXIMUM; OPTIONAL | ||
| 177 | Unit => 'NONE' | ||
| 178 | , # 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 | ||
| 179 | }, | ||
| 180 | |||
| 181 | }, | ||
| 182 | Description => 'MyString', # OPTIONAL | ||
| 183 | }, | ||
| 184 | ... | ||
| 185 | ], | ||
| 186 | |||
| 187 | }, # OPTIONAL | ||
| 188 | BidPrice => 'MyXmlStringMaxLen256', # max: 256 | ||
| 189 | Configurations => [ | ||
| 190 | { | ||
| 191 | Classification => 'MyString', # OPTIONAL | ||
| 192 | Configurations => <ConfigurationList>, | ||
| 193 | Properties => { | ||
| 194 | 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL | ||
| 195 | }, # OPTIONAL | ||
| 196 | }, | ||
| 197 | ... | ||
| 198 | ], # OPTIONAL | ||
| 199 | EbsConfiguration => { | ||
| 200 | EbsBlockDeviceConfigs => [ | ||
| 201 | { | ||
| 202 | VolumeSpecification => { | ||
| 203 | SizeInGB => 1, # OPTIONAL | ||
| 204 | VolumeType => 'MyString', # OPTIONAL | ||
| 205 | Iops => 1, # OPTIONAL | ||
| 206 | }, | ||
| 207 | VolumesPerInstance => 1, # OPTIONAL | ||
| 208 | }, | ||
| 209 | ... | ||
| 210 | ], # OPTIONAL | ||
| 211 | EbsOptimized => 1, # OPTIONAL | ||
| 212 | }, # OPTIONAL | ||
| 213 | Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL | ||
| 214 | Name => 'MyXmlStringMaxLen256', # max: 256 | ||
| 215 | }, | ||
| 216 | ... | ||
| 217 | ], # OPTIONAL | ||
| 218 | KeepJobFlowAliveWhenNoSteps => 1, # OPTIONAL | ||
| 219 | MasterInstanceType => 'MyInstanceType', # min: 1, max: 256 | ||
| 220 | Placement => { | ||
| 221 | AvailabilityZone => 'MyXmlString', # max: 10280; OPTIONAL | ||
| 222 | AvailabilityZones => [ | ||
| 223 | 'MyXmlStringMaxLen256', ... # max: 256 | ||
| 224 | ], # OPTIONAL | ||
| 225 | }, # OPTIONAL | ||
| 226 | ServiceAccessSecurityGroup => 'MyXmlStringMaxLen256', # max: 256 | ||
| 227 | SlaveInstanceType => 'MyInstanceType', # min: 1, max: 256 | ||
| 228 | TerminationProtected => 1, # OPTIONAL | ||
| 229 | }, | ||
| 230 | Name => 'MyXmlStringMaxLen256', | ||
| 231 | AdditionalInfo => 'MyXmlString', # OPTIONAL | ||
| 232 | AmiVersion => 'MyXmlStringMaxLen256', # OPTIONAL | ||
| 233 | Applications => [ | ||
| 234 | { | ||
| 235 | AdditionalInfo => { | ||
| 236 | 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL | ||
| 237 | }, # OPTIONAL | ||
| 238 | Args => [ | ||
| 239 | 'MyString', ... # OPTIONAL | ||
| 240 | ], # OPTIONAL | ||
| 241 | Name => 'MyString', # OPTIONAL | ||
| 242 | Version => 'MyString', # OPTIONAL | ||
| 243 | }, | ||
| 244 | ... | ||
| 245 | ], # OPTIONAL | ||
| 246 | AutoScalingRole => 'MyXmlString', # OPTIONAL | ||
| 247 | BootstrapActions => [ | ||
| 248 | { | ||
| 249 | Name => 'MyXmlStringMaxLen256', # max: 256 | ||
| 250 | ScriptBootstrapAction => { | ||
| 251 | Path => 'MyXmlString', # max: 10280; OPTIONAL | ||
| 252 | Args => [ | ||
| 253 | 'MyXmlString', ... # max: 10280; OPTIONAL | ||
| 254 | ], # OPTIONAL | ||
| 255 | }, | ||
| 256 | |||
| 257 | }, | ||
| 258 | ... | ||
| 259 | ], # OPTIONAL | ||
| 260 | Configurations => [ | ||
| 261 | { | ||
| 262 | Classification => 'MyString', # OPTIONAL | ||
| 263 | Configurations => <ConfigurationList>, | ||
| 264 | Properties => { | ||
| 265 | 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL | ||
| 266 | }, # OPTIONAL | ||
| 267 | }, | ||
| 268 | ... | ||
| 269 | ], # OPTIONAL | ||
| 270 | CustomAmiId => 'MyXmlStringMaxLen256', # OPTIONAL | ||
| 271 | EbsRootVolumeSize => 1, # OPTIONAL | ||
| 272 | JobFlowRole => 'MyXmlString', # OPTIONAL | ||
| 273 | KerberosAttributes => { | ||
| 274 | KdcAdminPassword => 'MyXmlStringMaxLen256', # max: 256 | ||
| 275 | Realm => 'MyXmlStringMaxLen256', # max: 256 | ||
| 276 | ADDomainJoinPassword => 'MyXmlStringMaxLen256', # max: 256 | ||
| 277 | ADDomainJoinUser => 'MyXmlStringMaxLen256', # max: 256 | ||
| 278 | CrossRealmTrustPrincipalPassword => 'MyXmlStringMaxLen256', # max: 256 | ||
| 279 | }, # OPTIONAL | ||
| 280 | LogEncryptionKmsKeyId => 'MyXmlString', # OPTIONAL | ||
| 281 | LogUri => 'MyXmlString', # OPTIONAL | ||
| 282 | ManagedScalingPolicy => { | ||
| 283 | ComputeLimits => { | ||
| 284 | MaximumCapacityUnits => 1, # OPTIONAL | ||
| 285 | MinimumCapacityUnits => 1, # OPTIONAL | ||
| 286 | UnitType => | ||
| 287 | 'InstanceFleetUnits', # values: InstanceFleetUnits, Instances, VCPU | ||
| 288 | MaximumCoreCapacityUnits => 1, # OPTIONAL | ||
| 289 | MaximumOnDemandCapacityUnits => 1, # OPTIONAL | ||
| 290 | }, # OPTIONAL | ||
| 291 | }, # OPTIONAL | ||
| 292 | NewSupportedProducts => [ | ||
| 293 | { | ||
| 294 | Args => [ | ||
| 295 | 'MyXmlString', ... # max: 10280; OPTIONAL | ||
| 296 | ], # OPTIONAL | ||
| 297 | Name => 'MyXmlStringMaxLen256', # max: 256 | ||
| 298 | }, | ||
| 299 | ... | ||
| 300 | ], # OPTIONAL | ||
| 301 | PlacementGroupConfigs => [ | ||
| 302 | { | ||
| 303 | InstanceRole => 'MASTER', # values: MASTER, CORE, TASK | ||
| 304 | PlacementStrategy => | ||
| 305 | 'SPREAD', # values: SPREAD, PARTITION, CLUSTER, NONE; OPTIONAL | ||
| 306 | }, | ||
| 307 | ... | ||
| 308 | ], # OPTIONAL | ||
| 309 | ReleaseLabel => 'MyXmlStringMaxLen256', # OPTIONAL | ||
| 310 | RepoUpgradeOnBoot => 'SECURITY', # OPTIONAL | ||
| 311 | ScaleDownBehavior => 'TERMINATE_AT_INSTANCE_HOUR', # OPTIONAL | ||
| 312 | SecurityConfiguration => 'MyXmlString', # OPTIONAL | ||
| 313 | ServiceRole => 'MyXmlString', # OPTIONAL | ||
| 314 | StepConcurrencyLevel => 1, # OPTIONAL | ||
| 315 | Steps => [ | ||
| 316 | { | ||
| 317 | HadoopJarStep => { | ||
| 318 | Jar => 'MyXmlString', # max: 10280; OPTIONAL | ||
| 319 | Args => [ | ||
| 320 | 'MyXmlString', ... # max: 10280; OPTIONAL | ||
| 321 | ], # OPTIONAL | ||
| 322 | MainClass => 'MyXmlString', # max: 10280; OPTIONAL | ||
| 323 | Properties => [ | ||
| 324 | { | ||
| 325 | Key => 'MyXmlString', # max: 10280; OPTIONAL | ||
| 326 | Value => 'MyXmlString', # max: 10280; OPTIONAL | ||
| 327 | }, | ||
| 328 | ... | ||
| 329 | ], # OPTIONAL | ||
| 330 | }, | ||
| 331 | Name => 'MyXmlStringMaxLen256', # max: 256 | ||
| 332 | ActionOnFailure => 'TERMINATE_JOB_FLOW' | ||
| 333 | , # values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE; OPTIONAL | ||
| 334 | }, | ||
| 335 | ... | ||
| 336 | ], # OPTIONAL | ||
| 337 | SupportedProducts => [ | ||
| 338 | 'MyXmlStringMaxLen256', ... # max: 256 | ||
| 339 | ], # OPTIONAL | ||
| 340 | Tags => [ | ||
| 341 | { | ||
| 342 | Key => 'MyString', # OPTIONAL | ||
| 343 | Value => 'MyString', # OPTIONAL | ||
| 344 | }, | ||
| 345 | ... | ||
| 346 | ], # OPTIONAL | ||
| 347 | VisibleToAllUsers => 1, # OPTIONAL | ||
| 348 | ); | ||
| 349 | |||
| 350 | # Results: | ||
| 351 | my $ClusterArn = $RunJobFlowOutput->ClusterArn; | ||
| 352 | my $JobFlowId = $RunJobFlowOutput->JobFlowId; | ||
| 353 | |||
| 354 | # Returns a L<Paws::EMR::RunJobFlowOutput> object. | ||
| 355 | |||
| 356 | 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. | ||
| 357 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce/RunJobFlow> | ||
| 358 | |||
| 359 | =head1 ATTRIBUTES | ||
| 360 | |||
| 361 | |||
| 362 | =head2 AdditionalInfo => Str | ||
| 363 | |||
| 364 | A JSON string for selecting additional features. | ||
| 365 | |||
| 366 | |||
| 367 | |||
| 368 | =head2 AmiVersion => Str | ||
| 369 | |||
| 370 | Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR | ||
| 371 | releases 4.0 and later, C<ReleaseLabel> is used. To specify a custom | ||
| 372 | AMI, use C<CustomAmiID>. | ||
| 373 | |||
| 374 | |||
| 375 | |||
| 376 | =head2 Applications => ArrayRef[L<Paws::EMR::Application>] | ||
| 377 | |||
| 378 | Applies to Amazon EMR releases 4.0 and later. A case-insensitive list | ||
| 379 | of applications for Amazon EMR to install and configure when launching | ||
| 380 | the cluster. For a list of applications available for each Amazon EMR | ||
| 381 | release version, see the Amazon EMR Release Guide | ||
| 382 | (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/). | ||
| 383 | |||
| 384 | |||
| 385 | |||
| 386 | =head2 AutoScalingRole => Str | ||
| 387 | |||
| 388 | An IAM role for automatic scaling policies. The default role is | ||
| 389 | C<EMR_AutoScaling_DefaultRole>. The IAM role provides permissions that | ||
| 390 | the automatic scaling feature requires to launch and terminate EC2 | ||
| 391 | instances in an instance group. | ||
| 392 | |||
| 393 | |||
| 394 | |||
| 395 | =head2 BootstrapActions => ArrayRef[L<Paws::EMR::BootstrapActionConfig>] | ||
| 396 | |||
| 397 | A list of bootstrap actions to run before Hadoop starts on the cluster | ||
| 398 | nodes. | ||
| 399 | |||
| 400 | |||
| 401 | |||
| 402 | =head2 Configurations => ArrayRef[L<Paws::EMR::Configuration>] | ||
| 403 | |||
| 404 | For Amazon EMR releases 4.0 and later. The list of configurations | ||
| 405 | supplied for the EMR cluster you are creating. | ||
| 406 | |||
| 407 | |||
| 408 | |||
| 409 | =head2 CustomAmiId => Str | ||
| 410 | |||
| 411 | Available only in Amazon EMR version 5.7.0 and later. The ID of a | ||
| 412 | custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this | ||
| 413 | AMI when it launches cluster EC2 instances. For more information about | ||
| 414 | custom AMIs in Amazon EMR, see Using a Custom AMI | ||
| 415 | (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-custom-ami.html) | ||
| 416 | in the I<Amazon EMR Management Guide>. If omitted, the cluster uses the | ||
| 417 | base Linux AMI for the C<ReleaseLabel> specified. For Amazon EMR | ||
| 418 | versions 2.x and 3.x, use C<AmiVersion> instead. | ||
| 419 | |||
| 420 | For information about creating a custom AMI, see Creating an Amazon | ||
| 421 | EBS-Backed Linux AMI | ||
| 422 | (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) | ||
| 423 | in the I<Amazon Elastic Compute Cloud User Guide for Linux Instances>. | ||
| 424 | For information about finding an AMI ID, see Finding a Linux AMI | ||
| 425 | (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html). | ||
| 426 | |||
| 427 | |||
| 428 | |||
| 429 | =head2 EbsRootVolumeSize => Int | ||
| 430 | |||
| 431 | The size, in GiB, of the Amazon EBS root device volume of the Linux AMI | ||
| 432 | that is used for each EC2 instance. Available in Amazon EMR version 4.x | ||
| 433 | and later. | ||
| 434 | |||
| 435 | |||
| 436 | |||
| 437 | =head2 B<REQUIRED> Instances => L<Paws::EMR::JobFlowInstancesConfig> | ||
| 438 | |||
| 439 | A specification of the number and type of Amazon EC2 instances. | ||
| 440 | |||
| 441 | |||
| 442 | |||
| 443 | =head2 JobFlowRole => Str | ||
| 444 | |||
| 445 | Also called instance profile and EC2 role. An IAM role for an EMR | ||
| 446 | cluster. The EC2 instances of the cluster assume this role. The default | ||
| 447 | role is C<EMR_EC2_DefaultRole>. In order to use the default role, you | ||
| 448 | must have already created it using the CLI or console. | ||
| 449 | |||
| 450 | |||
| 451 | |||
| 452 | =head2 KerberosAttributes => L<Paws::EMR::KerberosAttributes> | ||
| 453 | |||
| 454 | Attributes for Kerberos configuration when Kerberos authentication is | ||
| 455 | enabled using a security configuration. For more information see Use | ||
| 456 | Kerberos Authentication | ||
| 457 | (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html) | ||
| 458 | in the I<Amazon EMR Management Guide>. | ||
| 459 | |||
| 460 | |||
| 461 | |||
| 462 | =head2 LogEncryptionKmsKeyId => Str | ||
| 463 | |||
| 464 | The AWS KMS customer master key (CMK) used for encrypting log files. If | ||
| 465 | a value is not provided, the logs remain encrypted by AES-256. This | ||
| 466 | attribute is only available with Amazon EMR version 5.30.0 and later, | ||
| 467 | excluding Amazon EMR 6.0.0. | ||
| 468 | |||
| 469 | |||
| 470 | |||
| 471 | =head2 LogUri => Str | ||
| 472 | |||
| 473 | The location in Amazon S3 to write the log files of the job flow. If a | ||
| 474 | value is not provided, logs are not created. | ||
| 475 | |||
| 476 | |||
| 477 | |||
| 478 | =head2 ManagedScalingPolicy => L<Paws::EMR::ManagedScalingPolicy> | ||
| 479 | |||
| 480 | The specified managed scaling policy for an Amazon EMR cluster. | ||
| 481 | |||
| 482 | |||
| 483 | |||
| 484 | =head2 B<REQUIRED> Name => Str | ||
| 485 | |||
| 486 | The name of the job flow. | ||
| 487 | |||
| 488 | |||
| 489 | |||
| 490 | =head2 NewSupportedProducts => ArrayRef[L<Paws::EMR::SupportedProductConfig>] | ||
| 491 | |||
| 492 | For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and | ||
| 493 | later, use Applications. | ||
| 494 | |||
| 495 | A list of strings that indicates third-party software to use with the | ||
| 496 | job flow that accepts a user argument list. EMR accepts and forwards | ||
| 497 | the argument list to the corresponding installation script as bootstrap | ||
| 498 | action arguments. For more information, see "Launch a Job Flow on the | ||
| 499 | MapR Distribution for Hadoop" in the Amazon EMR Developer Guide | ||
| 500 | (https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). | ||
| 501 | Supported values are: | ||
| 502 | |||
| 503 | =over | ||
| 504 | |||
| 505 | =item * | ||
| 506 | |||
| 507 | "mapr-m3" - launch the cluster using MapR M3 Edition. | ||
| 508 | |||
| 509 | =item * | ||
| 510 | |||
| 511 | "mapr-m5" - launch the cluster using MapR M5 Edition. | ||
| 512 | |||
| 513 | =item * | ||
| 514 | |||
| 515 | "mapr" with the user arguments specifying "--edition,m3" or | ||
| 516 | "--edition,m5" - launch the job flow using MapR M3 or M5 Edition | ||
| 517 | respectively. | ||
| 518 | |||
| 519 | =item * | ||
| 520 | |||
| 521 | "mapr-m7" - launch the cluster using MapR M7 Edition. | ||
| 522 | |||
| 523 | =item * | ||
| 524 | |||
| 525 | "hunk" - launch the cluster with the Hunk Big Data Analytics Platform. | ||
| 526 | |||
| 527 | =item * | ||
| 528 | |||
| 529 | "hue"- launch the cluster with Hue installed. | ||
| 530 | |||
| 531 | =item * | ||
| 532 | |||
| 533 | "spark" - launch the cluster with Apache Spark installed. | ||
| 534 | |||
| 535 | =item * | ||
| 536 | |||
| 537 | "ganglia" - launch the cluster with the Ganglia Monitoring System | ||
| 538 | installed. | ||
| 539 | |||
| 540 | =back | ||
| 541 | |||
| 542 | |||
| 543 | |||
| 544 | |||
| 545 | =head2 PlacementGroupConfigs => ArrayRef[L<Paws::EMR::PlacementGroupConfig>] | ||
| 546 | |||
| 547 | The specified placement group configuration for an Amazon EMR cluster. | ||
| 548 | |||
| 549 | |||
| 550 | |||
| 551 | =head2 ReleaseLabel => Str | ||
| 552 | |||
| 553 | The Amazon EMR release label, which determines the version of | ||
| 554 | open-source application packages installed on the cluster. Release | ||
| 555 | labels are in the form C<emr-x.x.x>, where x.x.x is an Amazon EMR | ||
| 556 | release version such as C<emr-5.14.0>. For more information about | ||
| 557 | Amazon EMR release versions and included application versions and | ||
| 558 | features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/ | ||
| 559 | (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/). The release | ||
| 560 | label applies only to Amazon EMR releases version 4.0 and later. | ||
| 561 | Earlier versions use C<AmiVersion>. | ||
| 562 | |||
| 563 | |||
| 564 | |||
| 565 | =head2 RepoUpgradeOnBoot => Str | ||
| 566 | |||
| 567 | Applies only when C<CustomAmiID> is used. Specifies which updates from | ||
| 568 | the Amazon Linux AMI package repositories to apply automatically when | ||
| 569 | the instance boots using the AMI. If omitted, the default is | ||
| 570 | C<SECURITY>, which indicates that only security updates are applied. If | ||
| 571 | C<NONE> is specified, no updates are applied, and all updates must be | ||
| 572 | applied manually. | ||
| 573 | |||
| 574 | Valid values are: C<"SECURITY">, C<"NONE"> | ||
| 575 | |||
| 576 | =head2 ScaleDownBehavior => Str | ||
| 577 | |||
| 578 | Specifies the way that individual Amazon EC2 instances terminate when | ||
| 579 | an automatic scale-in activity occurs or an instance group is resized. | ||
| 580 | C<TERMINATE_AT_INSTANCE_HOUR> indicates that Amazon EMR terminates | ||
| 581 | nodes at the instance-hour boundary, regardless of when the request to | ||
| 582 | terminate the instance was submitted. This option is only available | ||
| 583 | with Amazon EMR 5.1.0 and later and is the default for clusters created | ||
| 584 | using that version. C<TERMINATE_AT_TASK_COMPLETION> indicates that | ||
| 585 | Amazon EMR adds nodes to a deny list and drains tasks from nodes before | ||
| 586 | terminating the Amazon EC2 instances, regardless of the instance-hour | ||
| 587 | boundary. With either behavior, Amazon EMR removes the least active | ||
| 588 | nodes first and blocks instance termination if it could lead to HDFS | ||
| 589 | corruption. C<TERMINATE_AT_TASK_COMPLETION> available only in Amazon | ||
| 590 | EMR version 4.1.0 and later, and is the default for versions of Amazon | ||
| 591 | EMR earlier than 5.1.0. | ||
| 592 | |||
| 593 | Valid values are: C<"TERMINATE_AT_INSTANCE_HOUR">, C<"TERMINATE_AT_TASK_COMPLETION"> | ||
| 594 | |||
| 595 | =head2 SecurityConfiguration => Str | ||
| 596 | |||
| 597 | The name of a security configuration to apply to the cluster. | ||
| 598 | |||
| 599 | |||
| 600 | |||
| 601 | =head2 ServiceRole => Str | ||
| 602 | |||
| 603 | The IAM role that will be assumed by the Amazon EMR service to access | ||
| 604 | AWS resources on your behalf. | ||
| 605 | |||
| 606 | |||
| 607 | |||
| 608 | =head2 StepConcurrencyLevel => Int | ||
| 609 | |||
| 610 | Specifies the number of steps that can be executed concurrently. The | ||
| 611 | default value is C<1>. The maximum value is C<256>. | ||
| 612 | |||
| 613 | |||
| 614 | |||
| 615 | =head2 Steps => ArrayRef[L<Paws::EMR::StepConfig>] | ||
| 616 | |||
| 617 | A list of steps to run. | ||
| 618 | |||
| 619 | |||
| 620 | |||
| 621 | =head2 SupportedProducts => ArrayRef[Str|Undef] | ||
| 622 | |||
| 623 | For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and | ||
| 624 | later, use Applications. | ||
| 625 | |||
| 626 | A list of strings that indicates third-party software to use. For more | ||
| 627 | information, see the Amazon EMR Developer Guide | ||
| 628 | (https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). | ||
| 629 | Currently supported values are: | ||
| 630 | |||
| 631 | =over | ||
| 632 | |||
| 633 | =item * | ||
| 634 | |||
| 635 | "mapr-m3" - launch the job flow using MapR M3 Edition. | ||
| 636 | |||
| 637 | =item * | ||
| 638 | |||
| 639 | "mapr-m5" - launch the job flow using MapR M5 Edition. | ||
| 640 | |||
| 641 | =back | ||
| 642 | |||
| 643 | |||
| 644 | |||
| 645 | |||
| 646 | =head2 Tags => ArrayRef[L<Paws::EMR::Tag>] | ||
| 647 | |||
| 648 | A list of tags to associate with a cluster and propagate to Amazon EC2 | ||
| 649 | instances. | ||
| 650 | |||
| 651 | |||
| 652 | |||
| 653 | =head2 VisibleToAllUsers => Bool | ||
| 654 | |||
| 655 | A value of C<true> indicates that all IAM users in the AWS account can | ||
| 656 | perform cluster actions if they have the proper IAM policy permissions. | ||
| 657 | This is the default. A value of C<false> indicates that only the IAM | ||
| 658 | user who created the cluster can perform actions. | ||
| 659 | |||
| 660 | |||
| 661 | |||
| 662 | |||
| 663 | =head1 SEE ALSO | ||
| 664 | |||
| 665 | This class forms part of L<Paws>, documenting arguments for method RunJobFlow in L<Paws::EMR> | ||
| 666 | |||
| 667 | =head1 BUGS and CONTRIBUTIONS | ||
| 668 | |||
| 669 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 670 | |||
| 671 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 672 | |||
| 673 | =cut | ||
| 674 |