blib/lib/Paws/QLDBSession/SendCommand.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::QLDBSession::SendCommand;
3 use Moose;
4 has AbortTransaction => (is => 'ro', isa => 'Paws::QLDBSession::AbortTransactionRequest');
5 has CommitTransaction => (is => 'ro', isa => 'Paws::QLDBSession::CommitTransactionRequest');
6 has EndSession => (is => 'ro', isa => 'Paws::QLDBSession::EndSessionRequest');
7 has ExecuteStatement => (is => 'ro', isa => 'Paws::QLDBSession::ExecuteStatementRequest');
8 has FetchPage => (is => 'ro', isa => 'Paws::QLDBSession::FetchPageRequest');
9 has SessionToken => (is => 'ro', isa => 'Str');
10 has StartSession => (is => 'ro', isa => 'Paws::QLDBSession::StartSessionRequest');
11 has StartTransaction => (is => 'ro', isa => 'Paws::QLDBSession::StartTransactionRequest');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendCommand');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::QLDBSession::SendCommandResult');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::QLDBSession::SendCommand - Arguments for method SendCommand on L<Paws::QLDBSession>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method SendCommand on the
29 L<Amazon QLDB Session|Paws::QLDBSession> service. Use the attributes of this class
30 as arguments to method SendCommand.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendCommand.
33  
34 =head1 SYNOPSIS
35  
36 my $session.qldb = Paws->service('QLDBSession');
37 my $SendCommandResult = $session . qldb->SendCommand(
38 AbortTransaction => {
39  
40 }, # OPTIONAL
41 CommitTransaction => {
42 CommitDigest => 'BlobCommitDigest',
43 TransactionId => 'MyTransactionId', # min: 22, max: 22
44  
45 }, # OPTIONAL
46 EndSession => {
47  
48 }, # OPTIONAL
49 ExecuteStatement => {
50 Statement => 'MyStatement', # min: 1, max: 100000
51 TransactionId => 'MyTransactionId', # min: 22, max: 22
52 Parameters => [
53 {
54 IonBinary => 'BlobIonBinary', # min: 1, max: 131072; OPTIONAL
55 IonText => 'MyIonText', # min: 1, max: 1048576; OPTIONAL
56 },
57 ...
58 ], # OPTIONAL
59 }, # OPTIONAL
60 FetchPage => {
61 NextPageToken => 'MyPageToken', # min: 4, max: 1024
62 TransactionId => 'MyTransactionId', # min: 22, max: 22
63  
64 }, # OPTIONAL
65 SessionToken => 'MySessionToken', # OPTIONAL
66 StartSession => {
67 LedgerName => 'MyLedgerName', # min: 1, max: 32
68  
69 }, # OPTIONAL
70 StartTransaction => {
71  
72 }, # OPTIONAL
73 );
74  
75 # Results:
76 my $AbortTransaction = $SendCommandResult->AbortTransaction;
77 my $CommitTransaction = $SendCommandResult->CommitTransaction;
78 my $EndSession = $SendCommandResult->EndSession;
79 my $ExecuteStatement = $SendCommandResult->ExecuteStatement;
80 my $FetchPage = $SendCommandResult->FetchPage;
81 my $StartSession = $SendCommandResult->StartSession;
82 my $StartTransaction = $SendCommandResult->StartTransaction;
83  
84 # Returns a L<Paws::QLDBSession::SendCommandResult> object.
85  
86 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.
87 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/session.qldb/SendCommand>
88  
89 =head1 ATTRIBUTES
90  
91  
92 =head2 AbortTransaction => L<Paws::QLDBSession::AbortTransactionRequest>
93  
94 Command to abort the current transaction.
95  
96  
97  
98 =head2 CommitTransaction => L<Paws::QLDBSession::CommitTransactionRequest>
99  
100 Command to commit the specified transaction.
101  
102  
103  
104 =head2 EndSession => L<Paws::QLDBSession::EndSessionRequest>
105  
106 Command to end the current session.
107  
108  
109  
110 =head2 ExecuteStatement => L<Paws::QLDBSession::ExecuteStatementRequest>
111  
112 Command to execute a statement in the specified transaction.
113  
114  
115  
116 =head2 FetchPage => L<Paws::QLDBSession::FetchPageRequest>
117  
118 Command to fetch a page.
119  
120  
121  
122 =head2 SessionToken => Str
123  
124 Specifies the session token for the current command. A session token is
125 constant throughout the life of the session.
126  
127 To obtain a session token, run the C<StartSession> command. This
128 C<SessionToken> is required for every subsequent command that is issued
129 during the current session.
130  
131  
132  
133 =head2 StartSession => L<Paws::QLDBSession::StartSessionRequest>
134  
135 Command to start a new session. A session token is obtained as part of
136 the response.
137  
138  
139  
140 =head2 StartTransaction => L<Paws::QLDBSession::StartTransactionRequest>
141  
142 Command to start a new transaction.
143  
144  
145  
146  
147 =head1 SEE ALSO
148  
149 This class forms part of L<Paws>, documenting arguments for method SendCommand in L<Paws::QLDBSession>
150  
151 =head1 BUGS and CONTRIBUTIONS
152  
153 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
154  
155 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
156  
157 =cut
158