blib/lib/Paws/EC2/ModifySpotFleetRequest.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifySpotFleetRequest;
3 use Moose;
4 has Context => (is => 'ro', isa => 'Str');
5 has ExcessCapacityTerminationPolicy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'excessCapacityTerminationPolicy' );
6 has LaunchTemplateConfigs => (is => 'ro', isa => 'ArrayRef[Paws::EC2::LaunchTemplateConfig]', traits => ['NameInRequest'], request_name => 'LaunchTemplateConfig' );
7 has OnDemandTargetCapacity => (is => 'ro', isa => 'Int');
8 has SpotFleetRequestId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'spotFleetRequestId' , required => 1);
9 has TargetCapacity => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'targetCapacity' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifySpotFleetRequest');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifySpotFleetRequestResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::EC2::ModifySpotFleetRequest - Arguments for method ModifySpotFleetRequest on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method ModifySpotFleetRequest on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method ModifySpotFleetRequest.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifySpotFleetRequest.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 # To increase the target capacity of a Spot fleet request
36 # This example increases the target capacity of the specified Spot fleet
37 # request.
38 my $ModifySpotFleetRequestResponse = $ec2->ModifySpotFleetRequest(
39 'SpotFleetRequestId' => 'sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE',
40 'TargetCapacity' => 20
41 );
42  
43 # Results:
44 my $Return = $ModifySpotFleetRequestResponse->Return;
45  
46 # Returns a L<Paws::EC2::ModifySpotFleetRequestResponse> object.
47 # To decrease the target capacity of a Spot fleet request
48 # This example decreases the target capacity of the specified Spot fleet request
49 # without terminating any Spot Instances as a result.
50 my $ModifySpotFleetRequestResponse = $ec2->ModifySpotFleetRequest(
51 'ExcessCapacityTerminationPolicy' => 'NoTermination ',
52 'SpotFleetRequestId' => 'sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE',
53 'TargetCapacity' => 10
54 );
55  
56 # Results:
57 my $Return = $ModifySpotFleetRequestResponse->Return;
58  
59 # Returns a L<Paws::EC2::ModifySpotFleetRequestResponse> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifySpotFleetRequest>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 Context => Str
68  
69 Reserved.
70  
71  
72  
73 =head2 ExcessCapacityTerminationPolicy => Str
74  
75 Indicates whether running Spot Instances should be terminated if the
76 target capacity of the Spot Fleet request is decreased below the
77 current size of the Spot Fleet.
78  
79 Valid values are: C<"noTermination">, C<"default">
80  
81 =head2 LaunchTemplateConfigs => ArrayRef[L<Paws::EC2::LaunchTemplateConfig>]
82  
83 The launch template and overrides. You can only use this parameter if
84 you specified a launch template (C<LaunchTemplateConfigs>) in your Spot
85 Fleet request. If you specified C<LaunchSpecifications> in your Spot
86 Fleet request, then omit this parameter.
87  
88  
89  
90 =head2 OnDemandTargetCapacity => Int
91  
92 The number of On-Demand Instances in the fleet.
93  
94  
95  
96 =head2 B<REQUIRED> SpotFleetRequestId => Str
97  
98 The ID of the Spot Fleet request.
99  
100  
101  
102 =head2 TargetCapacity => Int
103  
104 The size of the fleet.
105  
106  
107  
108  
109 =head1 SEE ALSO
110  
111 This class forms part of L<Paws>, documenting arguments for method ModifySpotFleetRequest in L<Paws::EC2>
112  
113 =head1 BUGS and CONTRIBUTIONS
114  
115 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
116  
117 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
118  
119 =cut
120