blib/lib/Paws/CloudWatchEvents/StartReplay.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudWatchEvents::StartReplay;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has Destination => (is => 'ro', isa => 'Paws::CloudWatchEvents::ReplayDestination', required => 1);
6 has EventEndTime => (is => 'ro', isa => 'Str', required => 1);
7 has EventSourceArn => (is => 'ro', isa => 'Str', required => 1);
8 has EventStartTime => (is => 'ro', isa => 'Str', required => 1);
9 has ReplayName => (is => 'ro', isa => 'Str', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartReplay');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchEvents::StartReplayResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CloudWatchEvents::StartReplay - Arguments for method StartReplay on L<Paws::CloudWatchEvents>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method StartReplay on the
27 L<Amazon EventBridge|Paws::CloudWatchEvents> service. Use the attributes of this class
28 as arguments to method StartReplay.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartReplay.
31  
32 =head1 SYNOPSIS
33  
34 my $events = Paws->service('CloudWatchEvents');
35 my $StartReplayResponse = $events->StartReplay(
36 Destination => {
37 Arn => 'MyArn', # min: 1, max: 1600
38 FilterArns => [
39 'MyArn', ... # min: 1, max: 1600
40 ], # OPTIONAL
41 },
42 EventEndTime => '1970-01-01T01:00:00',
43 EventSourceArn => 'MyArn',
44 EventStartTime => '1970-01-01T01:00:00',
45 ReplayName => 'MyReplayName',
46 Description => 'MyReplayDescription', # OPTIONAL
47 );
48  
49 # Results:
50 my $ReplayArn = $StartReplayResponse->ReplayArn;
51 my $ReplayStartTime = $StartReplayResponse->ReplayStartTime;
52 my $State = $StartReplayResponse->State;
53 my $StateReason = $StartReplayResponse->StateReason;
54  
55 # Returns a L<Paws::CloudWatchEvents::StartReplayResponse> object.
56  
57 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.
58 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/events/StartReplay>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 Description => Str
64  
65 A description for the replay to start.
66  
67  
68  
69 =head2 B<REQUIRED> Destination => L<Paws::CloudWatchEvents::ReplayDestination>
70  
71 A C<ReplayDestination> object that includes details about the
72 destination for the replay.
73  
74  
75  
76 =head2 B<REQUIRED> EventEndTime => Str
77  
78 A time stamp for the time to stop replaying events. Only events that
79 occurred between the C<EventStartTime> and C<EventEndTime> are
80 replayed.
81  
82  
83  
84 =head2 B<REQUIRED> EventSourceArn => Str
85  
86 The ARN of the archive to replay events from.
87  
88  
89  
90 =head2 B<REQUIRED> EventStartTime => Str
91  
92 A time stamp for the time to start replaying events. Only events that
93 occurred between the C<EventStartTime> and C<EventEndTime> are
94 replayed.
95  
96  
97  
98 =head2 B<REQUIRED> ReplayName => Str
99  
100 The name of the replay to start.
101  
102  
103  
104  
105 =head1 SEE ALSO
106  
107 This class forms part of L<Paws>, documenting arguments for method StartReplay in L<Paws::CloudWatchEvents>
108  
109 =head1 BUGS and CONTRIBUTIONS
110  
111 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
112  
113 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
114  
115 =cut
116