blib/lib/Paws/RDSData/BatchExecuteStatement.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RDSData::BatchExecuteStatement;
3 use Moose;
4 has Database => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'database');
5 has ParameterSets => (is => 'ro', isa => 'ArrayRef[ArrayRef[Paws::RDSData::SqlParameter]]', traits => ['NameInRequest'], request_name => 'parameterSets');
6 has ResourceArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resourceArn', required => 1);
7 has Schema => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'schema');
8 has SecretArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'secretArn', required => 1);
9 has Sql => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sql', required => 1);
10 has TransactionId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'transactionId');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'BatchExecuteStatement');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/BatchExecute');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RDSData::BatchExecuteStatementResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::RDSData::BatchExecuteStatement - Arguments for method BatchExecuteStatement on L<Paws::RDSData>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method BatchExecuteStatement on the
29 L<AWS RDS DataService|Paws::RDSData> service. Use the attributes of this class
30 as arguments to method BatchExecuteStatement.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to BatchExecuteStatement.
33  
34 =head1 SYNOPSIS
35  
36 my $rds-data = Paws->service('RDSData');
37 my $BatchExecuteStatementResponse = $rds -data->BatchExecuteStatement(
38 ResourceArn => 'MyArn',
39 SecretArn => 'MyArn',
40 Sql => 'MySqlStatement',
41 Database => 'MyDbName', # OPTIONAL
42 ParameterSets => [
43 [
44 {
45 Name => 'MyParameterName', # OPTIONAL
46 TypeHint => 'JSON'
47 , # values: JSON, UUID, TIMESTAMP, DATE, TIME, DECIMAL; OPTIONAL
48 Value => {
49 ArrayValue => {
50 ArrayValues => [ <ArrayValue>, ... ], # OPTIONAL
51 BooleanValues => [ 1, ... ], # OPTIONAL
52 DoubleValues => [ 1, ... ], # OPTIONAL
53 LongValues => [ 1, ... ], # OPTIONAL
54 StringValues => [ 'MyString', ... ], # OPTIONAL
55 }, # OPTIONAL
56 BlobValue => 'BlobBlob', # OPTIONAL
57 BooleanValue => 1,
58 DoubleValue => 1,
59 IsNull => 1,
60 LongValue => 1,
61 StringValue => 'MyString',
62 }, # OPTIONAL
63 },
64 ...
65 ],
66 ...
67 ], # OPTIONAL
68 Schema => 'MyDbName', # OPTIONAL
69 TransactionId => 'MyId', # OPTIONAL
70 );
71  
72 # Results:
73 my $UpdateResults = $BatchExecuteStatementResponse->UpdateResults;
74  
75 # Returns a L<Paws::RDSData::BatchExecuteStatementResponse> object.
76  
77 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.
78 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rds-data/BatchExecuteStatement>
79  
80 =head1 ATTRIBUTES
81  
82  
83 =head2 Database => Str
84  
85 The name of the database.
86  
87  
88  
89 =head2 ParameterSets => ArrayRef[L<ArrayRef[Paws::RDSData::SqlParameter]>]
90  
91 The parameter set for the batch operation.
92  
93 The SQL statement is executed as many times as the number of parameter
94 sets provided. To execute a SQL statement with no parameters, use one
95 of the following options:
96  
97 =over
98  
99 =item *
100  
101 Specify one or more empty parameter sets.
102  
103 =item *
104  
105 Use the C<ExecuteStatement> operation instead of the
106 C<BatchExecuteStatement> operation.
107  
108 =back
109  
110 Array parameters are not supported.
111  
112  
113  
114 =head2 B<REQUIRED> ResourceArn => Str
115  
116 The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
117  
118  
119  
120 =head2 Schema => Str
121  
122 The name of the database schema.
123  
124  
125  
126 =head2 B<REQUIRED> SecretArn => Str
127  
128 The name or ARN of the secret that enables access to the DB cluster.
129  
130  
131  
132 =head2 B<REQUIRED> Sql => Str
133  
134 The SQL statement to run.
135  
136  
137  
138 =head2 TransactionId => Str
139  
140 The identifier of a transaction that was started by using the
141 C<BeginTransaction> operation. Specify the transaction ID of the
142 transaction that you want to include the SQL statement in.
143  
144 If the SQL statement is not part of a transaction, don't set this
145 parameter.
146  
147  
148  
149  
150 =head1 SEE ALSO
151  
152 This class forms part of L<Paws>, documenting arguments for method BatchExecuteStatement in L<Paws::RDSData>
153  
154 =head1 BUGS and CONTRIBUTIONS
155  
156 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
157  
158 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
159  
160 =cut
161