blib/lib/Paws/EMR/AddInstanceFleet.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::AddInstanceFleet;
3 use Moose;
4 has ClusterId => (is => 'ro', isa => 'Str', required => 1);
5 has InstanceFleet => (is => 'ro', isa => 'Paws::EMR::InstanceFleetConfig', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddInstanceFleet');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EMR::AddInstanceFleetOutput');
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::AddInstanceFleet - Arguments for method AddInstanceFleet on L<Paws::EMR>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method AddInstanceFleet on the
23 L<Amazon Elastic MapReduce|Paws::EMR> service. Use the attributes of this class
24 as arguments to method AddInstanceFleet.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddInstanceFleet.
27  
28 =head1 SYNOPSIS
29  
30 my $elasticmapreduce = Paws->service('EMR');
31 my $AddInstanceFleetOutput = $elasticmapreduce->AddInstanceFleet(
32 ClusterId => 'MyXmlStringMaxLen256',
33 InstanceFleet => {
34 InstanceFleetType => 'MASTER', # values: MASTER, CORE, TASK
35 InstanceTypeConfigs => [
36 {
37 InstanceType => 'MyInstanceType', # min: 1, max: 256
38 BidPrice => 'MyXmlStringMaxLen256', # max: 256
39 BidPriceAsPercentageOfOnDemandPrice => 1, # OPTIONAL
40 Configurations => [
41 {
42 Classification => 'MyString', # OPTIONAL
43 Configurations => <ConfigurationList>,
44 Properties => {
45 'MyString' => 'MyString', # key: OPTIONAL, value: OPTIONAL
46 }, # OPTIONAL
47 },
48 ...
49 ], # OPTIONAL
50 EbsConfiguration => {
51 EbsBlockDeviceConfigs => [
52 {
53 VolumeSpecification => {
54 SizeInGB => 1,
55 VolumeType => 'MyString', # OPTIONAL
56 Iops => 1,
57 },
58 VolumesPerInstance => 1,
59 },
60 ...
61 ], # OPTIONAL
62 EbsOptimized => 1, # OPTIONAL
63 }, # OPTIONAL
64 WeightedCapacity => 1, # OPTIONAL
65 },
66 ...
67 ], # OPTIONAL
68 LaunchSpecifications => {
69 OnDemandSpecification => {
70 AllocationStrategy => 'lowest-price', # values: lowest-price
71 CapacityReservationOptions => {
72 CapacityReservationPreference =>
73 'open', # values: open, none; OPTIONAL
74 CapacityReservationResourceGroupArn =>
75 'MyXmlStringMaxLen256', # max: 256
76 UsageStrategy => 'use-capacity-reservations-first'
77 , # values: use-capacity-reservations-first; OPTIONAL
78 }, # OPTIONAL
79 }, # OPTIONAL
80 SpotSpecification => {
81 TimeoutAction => 'SWITCH_TO_ON_DEMAND'
82 , # values: SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
83 TimeoutDurationMinutes => 1, # OPTIONAL
84 AllocationStrategy =>
85 'capacity-optimized', # values: capacity-optimized; OPTIONAL
86 BlockDurationMinutes => 1, # OPTIONAL
87 }, # OPTIONAL
88 }, # OPTIONAL
89 Name => 'MyXmlStringMaxLen256', # max: 256
90 TargetOnDemandCapacity => 1, # OPTIONAL
91 TargetSpotCapacity => 1, # OPTIONAL
92 },
93  
94 );
95  
96 # Results:
97 my $ClusterArn = $AddInstanceFleetOutput->ClusterArn;
98 my $ClusterId = $AddInstanceFleetOutput->ClusterId;
99 my $InstanceFleetId = $AddInstanceFleetOutput->InstanceFleetId;
100  
101 # Returns a L<Paws::EMR::AddInstanceFleetOutput> object.
102  
103 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.
104 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce/AddInstanceFleet>
105  
106 =head1 ATTRIBUTES
107  
108  
109 =head2 B<REQUIRED> ClusterId => Str
110  
111 The unique identifier of the cluster.
112  
113  
114  
115 =head2 B<REQUIRED> InstanceFleet => L<Paws::EMR::InstanceFleetConfig>
116  
117 Specifies the configuration of the instance fleet.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method AddInstanceFleet in L<Paws::EMR>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133