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

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::DescribeSpotFleetRequestHistory;
3 use Moose;
4 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
5 has EventType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'eventType' );
6 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' );
7 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
8 has SpotFleetRequestId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'spotFleetRequestId' , required => 1);
9 has StartTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'startTime' , required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeSpotFleetRequestHistory');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeSpotFleetRequestHistoryResponse');
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::DescribeSpotFleetRequestHistory - Arguments for method DescribeSpotFleetRequestHistory on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method DescribeSpotFleetRequestHistory on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method DescribeSpotFleetRequestHistory.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeSpotFleetRequestHistory.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 # To describe Spot fleet history
36 # This example returns the history for the specified Spot fleet starting at the
37 # specified time.
38 my $DescribeSpotFleetRequestHistoryResponse =
39 $ec2->DescribeSpotFleetRequestHistory(
40 'SpotFleetRequestId' => 'sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE',
41 'StartTime' => '2015-05-26T00:00:00Z'
42 );
43  
44 # Results:
45 my $HistoryRecords =
46 $DescribeSpotFleetRequestHistoryResponse->HistoryRecords;
47 my $NextToken = $DescribeSpotFleetRequestHistoryResponse->NextToken;
48 my $SpotFleetRequestId =
49 $DescribeSpotFleetRequestHistoryResponse->SpotFleetRequestId;
50 my $StartTime = $DescribeSpotFleetRequestHistoryResponse->StartTime;
51  
52 # Returns a L<Paws::EC2::DescribeSpotFleetRequestHistoryResponse> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/DescribeSpotFleetRequestHistory>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 DryRun => Bool
61  
62 Checks whether you have the required permissions for the action,
63 without actually making the request, and provides an error response. If
64 you have the required permissions, the error response is
65 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
66  
67  
68  
69 =head2 EventType => Str
70  
71 The type of events to describe. By default, all events are described.
72  
73 Valid values are: C<"instanceChange">, C<"fleetRequestChange">, C<"error">, C<"information">
74  
75 =head2 MaxResults => Int
76  
77 The maximum number of results to return in a single call. Specify a
78 value between 1 and 1000. The default value is 1000. To retrieve the
79 remaining results, make another call with the returned C<NextToken>
80 value.
81  
82  
83  
84 =head2 NextToken => Str
85  
86 The token for the next set of results.
87  
88  
89  
90 =head2 B<REQUIRED> SpotFleetRequestId => Str
91  
92 The ID of the Spot Fleet request.
93  
94  
95  
96 =head2 B<REQUIRED> StartTime => Str
97  
98 The starting date and time for the events, in UTC format (for example,
99 I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z).
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method DescribeSpotFleetRequestHistory in L<Paws::EC2>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115