blib/lib/Paws/EMR/AddInstanceGroups.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EMR::AddInstanceGroups;
3 use Moose;
4 has InstanceGroups => (is => 'ro', isa => 'ArrayRef[Paws::EMR::InstanceGroupConfig]', required => 1);
5 has JobFlowId => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddInstanceGroups');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EMR::AddInstanceGroupsOutput');
11 class_has _result_key => (isa => 'Str', is => 'ro');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::EMR::AddInstanceGroups - Arguments for method AddInstanceGroups on L<Paws::EMR>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method AddInstanceGroups on the
23 L<Amazon Elastic MapReduce|Paws::EMR> service. Use the attributes of this class
24 as arguments to method AddInstanceGroups.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddInstanceGroups.
27  
28 =head1 SYNOPSIS
29  
30 my $elasticmapreduce = Paws->service('EMR');
31 my $AddInstanceGroupsOutput = $elasticmapreduce->AddInstanceGroups(
32 InstanceGroups => [
33 {
34 InstanceCount => 1,
35 InstanceRole => 'MASTER', # values: MASTER, CORE, TASK
36 InstanceType => 'MyInstanceType', # min: 1, max: 256
37 AutoScalingPolicy => {
38 Constraints => {
39 MaxCapacity => 1,
40 MinCapacity => 1,
41  
42 },
43 Rules => [
44 {
45 Action => {
46 SimpleScalingPolicyConfiguration => {
47 ScalingAdjustment => 1,
48 AdjustmentType => 'CHANGE_IN_CAPACITY'
49 , # values: CHANGE_IN_CAPACITY, PERCENT_CHANGE_IN_CAPACITY, EXACT_CAPACITY; OPTIONAL
50 CoolDown => 1,
51 },
52 Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL
53 },
54 Name => 'MyString',
55 Trigger => {
56 CloudWatchAlarmDefinition => {
57 ComparisonOperator => 'GREATER_THAN_OR_EQUAL'
58 , # values: GREATER_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, LESS_THAN_OR_EQUAL
59 MetricName => 'MyString',
60 Period => 1,
61 Threshold => 1,
62 Dimensions => [
63 {
64 Key => 'MyString',
65 Value => 'MyString',
66 },
67 ...
68 ], # OPTIONAL
69 EvaluationPeriods => 1,
70 Namespace => 'MyString',
71 Statistic => 'SAMPLE_COUNT'
72 , # values: SAMPLE_COUNT, AVERAGE, SUM, MINIMUM, MAXIMUM; OPTIONAL
73 Unit => 'NONE'
74 , # 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
75 },
76  
77 },
78 Description => 'MyString',
79 },
80 ...
81 ],
82  
83 }, # OPTIONAL
84 BidPrice => 'MyXmlStringMaxLen256', # max: 256; OPTIONAL
85 Configurations => [
86 {
87 Classification => 'MyString',
88 Configurations => <ConfigurationList>,
89 Properties => { 'MyString' => 'MyString', }, # OPTIONAL
90 },
91 ...
92 ], # OPTIONAL
93 EbsConfiguration => {
94 EbsBlockDeviceConfigs => [
95 {
96 VolumeSpecification => {
97 SizeInGB => 1,
98 VolumeType => 'MyString',
99 Iops => 1,
100 },
101 VolumesPerInstance => 1,
102 },
103 ...
104 ], # OPTIONAL
105 EbsOptimized => 1, # OPTIONAL
106 }, # OPTIONAL
107 Market => 'ON_DEMAND', # values: ON_DEMAND, SPOT; OPTIONAL
108 Name => 'MyXmlStringMaxLen256', # max: 256; OPTIONAL
109 },
110 ...
111 ],
112 JobFlowId => 'MyXmlStringMaxLen256',
113  
114 );
115  
116 # Results:
117 my $ClusterArn = $AddInstanceGroupsOutput->ClusterArn;
118 my $InstanceGroupIds = $AddInstanceGroupsOutput->InstanceGroupIds;
119 my $JobFlowId = $AddInstanceGroupsOutput->JobFlowId;
120  
121 # Returns a L<Paws::EMR::AddInstanceGroupsOutput> object.
122  
123 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.
124 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce/AddInstanceGroups>
125  
126 =head1 ATTRIBUTES
127  
128  
129 =head2 B<REQUIRED> InstanceGroups => ArrayRef[L<Paws::EMR::InstanceGroupConfig>]
130  
131 Instance groups to add.
132  
133  
134  
135 =head2 B<REQUIRED> JobFlowId => Str
136  
137 Job flow in which to add the instance groups.
138  
139  
140  
141  
142 =head1 SEE ALSO
143  
144 This class forms part of L<Paws>, documenting arguments for method AddInstanceGroups in L<Paws::EMR>
145  
146 =head1 BUGS and CONTRIBUTIONS
147  
148 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
149  
150 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
151  
152 =cut
153