| 1 | package Paws::RDSData; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'rds-data' } | ||
| 4 | sub signing_name { 'rds-data' } | ||
| 5 | sub version { '2018-08-01' } | ||
| 6 | sub flattened_arrays { 0 } | ||
| 7 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 8 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 9 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 10 | }); | ||
| 11 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 12 | ] }); | ||
| 13 | |||
| 14 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; | ||
| 15 | |||
| 16 | |||
| 17 | sub BatchExecuteStatement { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::RDSData::BatchExecuteStatement', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | sub BeginTransaction { | ||
| 23 | my $self = shift; | ||
| 24 | my $call_object = $self->new_with_coercions('Paws::RDSData::BeginTransaction', @_); | ||
| 25 | return $self->caller->do_call($self, $call_object); | ||
| 26 | } | ||
| 27 | sub CommitTransaction { | ||
| 28 | my $self = shift; | ||
| 29 | my $call_object = $self->new_with_coercions('Paws::RDSData::CommitTransaction', @_); | ||
| 30 | return $self->caller->do_call($self, $call_object); | ||
| 31 | } | ||
| 32 | sub ExecuteSql { | ||
| 33 | my $self = shift; | ||
| 34 | my $call_object = $self->new_with_coercions('Paws::RDSData::ExecuteSql', @_); | ||
| 35 | return $self->caller->do_call($self, $call_object); | ||
| 36 | } | ||
| 37 | sub ExecuteStatement { | ||
| 38 | my $self = shift; | ||
| 39 | my $call_object = $self->new_with_coercions('Paws::RDSData::ExecuteStatement', @_); | ||
| 40 | return $self->caller->do_call($self, $call_object); | ||
| 41 | } | ||
| 42 | sub RollbackTransaction { | ||
| 43 | my $self = shift; | ||
| 44 | my $call_object = $self->new_with_coercions('Paws::RDSData::RollbackTransaction', @_); | ||
| 45 | return $self->caller->do_call($self, $call_object); | ||
| 46 | } | ||
| 47 | |||
| 48 | |||
| 49 | |||
| 50 | sub operations { qw/BatchExecuteStatement BeginTransaction CommitTransaction ExecuteSql ExecuteStatement RollbackTransaction / } | ||
| 51 | |||
| 52 | 1; | ||
| 53 | |||
| 54 | ### main pod documentation begin ### | ||
| 55 | |||
| 56 | =head1 NAME | ||
| 57 | |||
| 58 | Paws::RDSData - Perl Interface to AWS AWS RDS DataService | ||
| 59 | |||
| 60 | =head1 SYNOPSIS | ||
| 61 | |||
| 62 | use Paws; | ||
| 63 | |||
| 64 | my $obj = Paws->service('RDSData'); | ||
| 65 | my $res = $obj->Method( | ||
| 66 | Arg1 => $val1, | ||
| 67 | Arg2 => [ 'V1', 'V2' ], | ||
| 68 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 69 | # of the arguments type | ||
| 70 | Arg3 => { Att1 => 'Val1' }, | ||
| 71 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 72 | # the constructor of the arguments type | ||
| 73 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 74 | ); | ||
| 75 | |||
| 76 | =head1 DESCRIPTION | ||
| 77 | |||
| 78 | Amazon RDS Data Service | ||
| 79 | |||
| 80 | Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon | ||
| 81 | Aurora Serverless DB cluster. To run these statements, you work with | ||
| 82 | the Data Service API. | ||
| 83 | |||
| 84 | For more information about the Data Service API, see Using the Data API | ||
| 85 | for Aurora Serverless | ||
| 86 | (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) | ||
| 87 | in the I<Amazon Aurora User Guide>. | ||
| 88 | |||
| 89 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01> | ||
| 90 | |||
| 91 | |||
| 92 | =head1 METHODS | ||
| 93 | |||
| 94 | =head2 BatchExecuteStatement | ||
| 95 | |||
| 96 | =over | ||
| 97 | |||
| 98 | =item ResourceArn => Str | ||
| 99 | |||
| 100 | =item SecretArn => Str | ||
| 101 | |||
| 102 | =item Sql => Str | ||
| 103 | |||
| 104 | =item [Database => Str] | ||
| 105 | |||
| 106 | =item [ParameterSets => ArrayRef[L<ArrayRef[Paws::RDSData::SqlParameter]>]] | ||
| 107 | |||
| 108 | =item [Schema => Str] | ||
| 109 | |||
| 110 | =item [TransactionId => Str] | ||
| 111 | |||
| 112 | |||
| 113 | =back | ||
| 114 | |||
| 115 | Each argument is described in detail in: L<Paws::RDSData::BatchExecuteStatement> | ||
| 116 | |||
| 117 | Returns: a L<Paws::RDSData::BatchExecuteStatementResponse> instance | ||
| 118 | |||
| 119 | Runs a batch SQL statement over an array of data. | ||
| 120 | |||
| 121 | You can run bulk update and insert operations for multiple records | ||
| 122 | using a DML statement with different parameter sets. Bulk operations | ||
| 123 | can provide a significant performance improvement over individual | ||
| 124 | insert and update operations. | ||
| 125 | |||
| 126 | If a call isn't part of a transaction because it doesn't include the | ||
| 127 | C<transactionID> parameter, changes that result from the call are | ||
| 128 | committed automatically. | ||
| 129 | |||
| 130 | |||
| 131 | =head2 BeginTransaction | ||
| 132 | |||
| 133 | =over | ||
| 134 | |||
| 135 | =item ResourceArn => Str | ||
| 136 | |||
| 137 | =item SecretArn => Str | ||
| 138 | |||
| 139 | =item [Database => Str] | ||
| 140 | |||
| 141 | =item [Schema => Str] | ||
| 142 | |||
| 143 | |||
| 144 | =back | ||
| 145 | |||
| 146 | Each argument is described in detail in: L<Paws::RDSData::BeginTransaction> | ||
| 147 | |||
| 148 | Returns: a L<Paws::RDSData::BeginTransactionResponse> instance | ||
| 149 | |||
| 150 | Starts a SQL transaction. | ||
| 151 | |||
| 152 | <important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important> | ||
| 153 | |||
| 154 | |||
| 155 | =head2 CommitTransaction | ||
| 156 | |||
| 157 | =over | ||
| 158 | |||
| 159 | =item ResourceArn => Str | ||
| 160 | |||
| 161 | =item SecretArn => Str | ||
| 162 | |||
| 163 | =item TransactionId => Str | ||
| 164 | |||
| 165 | |||
| 166 | =back | ||
| 167 | |||
| 168 | Each argument is described in detail in: L<Paws::RDSData::CommitTransaction> | ||
| 169 | |||
| 170 | Returns: a L<Paws::RDSData::CommitTransactionResponse> instance | ||
| 171 | |||
| 172 | Ends a SQL transaction started with the C<BeginTransaction> operation | ||
| 173 | and commits the changes. | ||
| 174 | |||
| 175 | |||
| 176 | =head2 ExecuteSql | ||
| 177 | |||
| 178 | =over | ||
| 179 | |||
| 180 | =item AwsSecretStoreArn => Str | ||
| 181 | |||
| 182 | =item DbClusterOrInstanceArn => Str | ||
| 183 | |||
| 184 | =item SqlStatements => Str | ||
| 185 | |||
| 186 | =item [Database => Str] | ||
| 187 | |||
| 188 | =item [Schema => Str] | ||
| 189 | |||
| 190 | |||
| 191 | =back | ||
| 192 | |||
| 193 | Each argument is described in detail in: L<Paws::RDSData::ExecuteSql> | ||
| 194 | |||
| 195 | Returns: a L<Paws::RDSData::ExecuteSqlResponse> instance | ||
| 196 | |||
| 197 | Runs one or more SQL statements. | ||
| 198 | |||
| 199 | This operation is deprecated. Use the C<BatchExecuteStatement> or | ||
| 200 | C<ExecuteStatement> operation. | ||
| 201 | |||
| 202 | |||
| 203 | =head2 ExecuteStatement | ||
| 204 | |||
| 205 | =over | ||
| 206 | |||
| 207 | =item ResourceArn => Str | ||
| 208 | |||
| 209 | =item SecretArn => Str | ||
| 210 | |||
| 211 | =item Sql => Str | ||
| 212 | |||
| 213 | =item [ContinueAfterTimeout => Bool] | ||
| 214 | |||
| 215 | =item [Database => Str] | ||
| 216 | |||
| 217 | =item [IncludeResultMetadata => Bool] | ||
| 218 | |||
| 219 | =item [Parameters => ArrayRef[L<Paws::RDSData::SqlParameter>]] | ||
| 220 | |||
| 221 | =item [ResultSetOptions => L<Paws::RDSData::ResultSetOptions>] | ||
| 222 | |||
| 223 | =item [Schema => Str] | ||
| 224 | |||
| 225 | =item [TransactionId => Str] | ||
| 226 | |||
| 227 | |||
| 228 | =back | ||
| 229 | |||
| 230 | Each argument is described in detail in: L<Paws::RDSData::ExecuteStatement> | ||
| 231 | |||
| 232 | Returns: a L<Paws::RDSData::ExecuteStatementResponse> instance | ||
| 233 | |||
| 234 | Runs a SQL statement against a database. | ||
| 235 | |||
| 236 | If a call isn't part of a transaction because it doesn't include the | ||
| 237 | C<transactionID> parameter, changes that result from the call are | ||
| 238 | committed automatically. | ||
| 239 | |||
| 240 | The response size limit is 1 MB. If the call returns more than 1 MB of | ||
| 241 | response data, the call is terminated. | ||
| 242 | |||
| 243 | |||
| 244 | =head2 RollbackTransaction | ||
| 245 | |||
| 246 | =over | ||
| 247 | |||
| 248 | =item ResourceArn => Str | ||
| 249 | |||
| 250 | =item SecretArn => Str | ||
| 251 | |||
| 252 | =item TransactionId => Str | ||
| 253 | |||
| 254 | |||
| 255 | =back | ||
| 256 | |||
| 257 | Each argument is described in detail in: L<Paws::RDSData::RollbackTransaction> | ||
| 258 | |||
| 259 | Returns: a L<Paws::RDSData::RollbackTransactionResponse> instance | ||
| 260 | |||
| 261 | Performs a rollback of a transaction. Rolling back a transaction | ||
| 262 | cancels its changes. | ||
| 263 | |||
| 264 | |||
| 265 | |||
| 266 | |||
| 267 | =head1 PAGINATORS | ||
| 268 | |||
| 269 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 270 | |||
| 271 | |||
| 272 | |||
| 273 | |||
| 274 | =head1 SEE ALSO | ||
| 275 | |||
| 276 | This service class forms part of L<Paws> | ||
| 277 | |||
| 278 | =head1 BUGS and CONTRIBUTIONS | ||
| 279 | |||
| 280 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 281 | |||
| 282 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 283 | |||
| 284 | =cut | ||
| 285 |