blib/lib/Paws/DMS/StartReplicationTask.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DMS::StartReplicationTask;
3 use Moose;
4 has CdcStartPosition => (is => 'ro', isa => 'Str');
5 has CdcStartTime => (is => 'ro', isa => 'Str');
6 has CdcStopPosition => (is => 'ro', isa => 'Str');
7 has ReplicationTaskArn => (is => 'ro', isa => 'Str', required => 1);
8 has StartReplicationTaskType => (is => 'ro', isa => 'Str', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartReplicationTask');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DMS::StartReplicationTaskResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::DMS::StartReplicationTask - Arguments for method StartReplicationTask on L<Paws::DMS>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method StartReplicationTask on the
26 L<AWS Database Migration Service|Paws::DMS> service. Use the attributes of this class
27 as arguments to method StartReplicationTask.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartReplicationTask.
30  
31 =head1 SYNOPSIS
32  
33 my $dms = Paws->service('DMS');
34 # Start replication task
35 # Starts the replication task.
36 my $StartReplicationTaskResponse = $dms->StartReplicationTask(
37 'CdcStartTime' => '2016-12-14T13:33:20Z',
38 'ReplicationTaskArn' =>
39 'arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ',
40 'StartReplicationTaskType' => 'start-replication'
41 );
42  
43 # Results:
44 my $ReplicationTask = $StartReplicationTaskResponse->ReplicationTask;
45  
46 # Returns a L<Paws::DMS::StartReplicationTaskResponse> object.
47  
48 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.
49 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dms/StartReplicationTask>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 CdcStartPosition => Str
55  
56 Indicates when you want a change data capture (CDC) operation to start.
57 Use either CdcStartPosition or CdcStartTime to specify when you want a
58 CDC operation to start. Specifying both values results in an error.
59  
60 The value can be in date, checkpoint, or LSN/SCN format.
61  
62 Date Example: --cdc-start-position E<ldquo>2018-03-08T12:12:12E<rdquo>
63  
64 Checkpoint Example: --cdc-start-position
65 "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
66  
67 LSN Example: --cdc-start-position
68 E<ldquo>mysql-bin-changelog.000024:373E<rdquo>
69  
70 When you use this task setting with a source PostgreSQL database, a
71 logical replication slot should already be created and associated with
72 the source endpoint. You can verify this by setting the C<slotName>
73 extra connection attribute to the name of this logical replication
74 slot. For more information, see Extra Connection Attributes When Using
75 PostgreSQL as a Source for AWS DMS
76 (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib).
77  
78  
79  
80 =head2 CdcStartTime => Str
81  
82 Indicates the start time for a change data capture (CDC) operation. Use
83 either CdcStartTime or CdcStartPosition to specify when you want a CDC
84 operation to start. Specifying both values results in an error.
85  
86 Timestamp Example: --cdc-start-time E<ldquo>2018-03-08T12:12:12E<rdquo>
87  
88  
89  
90 =head2 CdcStopPosition => Str
91  
92 Indicates when you want a change data capture (CDC) operation to stop.
93 The value can be either server time or commit time.
94  
95 Server time example: --cdc-stop-position
96 E<ldquo>server_time:2018-02-09T12:12:12E<rdquo>
97  
98 Commit time example: --cdc-stop-position E<ldquo>commit_time:
99 2018-02-09T12:12:12 E<ldquo>
100  
101  
102  
103 =head2 B<REQUIRED> ReplicationTaskArn => Str
104  
105 The Amazon Resource Name (ARN) of the replication task to be started.
106  
107  
108  
109 =head2 B<REQUIRED> StartReplicationTaskType => Str
110  
111 A type of replication task.
112  
113 Valid values are: C<"start-replication">, C<"resume-processing">, C<"reload-target">
114  
115  
116 =head1 SEE ALSO
117  
118 This class forms part of L<Paws>, documenting arguments for method StartReplicationTask in L<Paws::DMS>
119  
120 =head1 BUGS and CONTRIBUTIONS
121  
122 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
123  
124 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
125  
126 =cut
127