blib/lib/Paws/DevOpsGuru/ListEvents.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DevOpsGuru::ListEvents;
3 use Moose;
4 has Filters => (is => 'ro', isa => 'Paws::DevOpsGuru::ListEventsFilters', required => 1);
5 has MaxResults => (is => 'ro', isa => 'Int');
6 has NextToken => (is => 'ro', isa => 'Str');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListEvents');
11 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/events');
12 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DevOpsGuru::ListEventsResponse');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::DevOpsGuru::ListEvents - Arguments for method ListEvents on L<Paws::DevOpsGuru>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ListEvents on the
25 L<Amazon DevOps Guru|Paws::DevOpsGuru> service. Use the attributes of this class
26 as arguments to method ListEvents.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListEvents.
29  
30 =head1 SYNOPSIS
31  
32 my $devops-guru = Paws->service('DevOpsGuru');
33 my $ListEventsResponse = $devops -guru->ListEvents(
34 Filters => {
35 DataSource => 'AWS_CLOUD_TRAIL'
36 , # values: AWS_CLOUD_TRAIL, AWS_CODE_DEPLOY; OPTIONAL
37 EventClass => 'INFRASTRUCTURE'
38 , # values: INFRASTRUCTURE, DEPLOYMENT, SECURITY_CHANGE, CONFIG_CHANGE, SCHEMA_CHANGE; OPTIONAL
39 EventSource => 'MyEventSource', # min: 10, max: 50; OPTIONAL
40 EventTimeRange => {
41 FromTime => '1970-01-01T01:00:00',
42 ToTime => '1970-01-01T01:00:00',
43  
44 }, # OPTIONAL
45 InsightId => 'MyInsightId', # min: 1, max: 100; OPTIONAL
46 ResourceCollection => {
47 CloudFormation => {
48 StackNames => [
49 'MyStackName', ... # min: 1, max: 128
50 ], # OPTIONAL
51 }, # OPTIONAL
52 }, # OPTIONAL
53 },
54 MaxResults => 1, # OPTIONAL
55 NextToken => 'MyUuidNextToken', # OPTIONAL
56 );
57  
58 # Results:
59 my $Events = $ListEventsResponse->Events;
60 my $NextToken = $ListEventsResponse->NextToken;
61  
62 # Returns a L<Paws::DevOpsGuru::ListEventsResponse> object.
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/devops-guru/ListEvents>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 B<REQUIRED> Filters => L<Paws::DevOpsGuru::ListEventsFilters>
71  
72 A C<ListEventsFilters> object used to specify which events to return.
73  
74  
75  
76 =head2 MaxResults => Int
77  
78 The maximum number of results to return with a single call. To retrieve
79 the remaining results, make another call with the returned C<nextToken>
80 value.
81  
82  
83  
84 =head2 NextToken => Str
85  
86 The pagination token to use to retrieve the next page of results for
87 this operation. If this value is null, it retrieves the first page.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method ListEvents in L<Paws::DevOpsGuru>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103