1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package rdsdataservice
4
5import (
6	"fmt"
7
8	"github.com/aws/aws-sdk-go/aws"
9	"github.com/aws/aws-sdk-go/aws/awsutil"
10	"github.com/aws/aws-sdk-go/aws/request"
11	"github.com/aws/aws-sdk-go/private/protocol"
12)
13
14const opBatchExecuteStatement = "BatchExecuteStatement"
15
16// BatchExecuteStatementRequest generates a "aws/request.Request" representing the
17// client's request for the BatchExecuteStatement operation. The "output" return
18// value will be populated with the request's response once the request completes
19// successfully.
20//
21// Use "Send" method on the returned Request to send the API call to the service.
22// the "output" return value is not valid until after Send returns without error.
23//
24// See BatchExecuteStatement for more information on using the BatchExecuteStatement
25// API call, and error handling.
26//
27// This method is useful when you want to inject custom logic or configuration
28// into the SDK's request lifecycle. Such as custom headers, or retry logic.
29//
30//
31//    // Example sending a request using the BatchExecuteStatementRequest method.
32//    req, resp := client.BatchExecuteStatementRequest(params)
33//
34//    err := req.Send()
35//    if err == nil { // resp is now filled
36//        fmt.Println(resp)
37//    }
38//
39// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatement
40func (c *RDSDataService) BatchExecuteStatementRequest(input *BatchExecuteStatementInput) (req *request.Request, output *BatchExecuteStatementOutput) {
41	op := &request.Operation{
42		Name:       opBatchExecuteStatement,
43		HTTPMethod: "POST",
44		HTTPPath:   "/BatchExecute",
45	}
46
47	if input == nil {
48		input = &BatchExecuteStatementInput{}
49	}
50
51	output = &BatchExecuteStatementOutput{}
52	req = c.newRequest(op, input, output)
53	return
54}
55
56// BatchExecuteStatement API operation for AWS RDS DataService.
57//
58// Runs a batch SQL statement over an array of data.
59//
60// You can run bulk update and insert operations for multiple records using
61// a DML statement with different parameter sets. Bulk operations can provide
62// a significant performance improvement over individual insert and update operations.
63//
64// If a call isn't part of a transaction because it doesn't include the transactionID
65// parameter, changes that result from the call are committed automatically.
66//
67// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
68// with awserr.Error's Code and Message methods to get detailed information about
69// the error.
70//
71// See the AWS API reference guide for AWS RDS DataService's
72// API operation BatchExecuteStatement for usage and error information.
73//
74// Returned Error Types:
75//   * BadRequestException
76//   There is an error in the call or in a SQL statement.
77//
78//   * StatementTimeoutException
79//   The execution of the SQL statement timed out.
80//
81//   * InternalServerErrorException
82//   An internal error occurred.
83//
84//   * ForbiddenException
85//   There are insufficient privileges to make the call.
86//
87//   * ServiceUnavailableError
88//   The service specified by the resourceArn parameter is not available.
89//
90// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatement
91func (c *RDSDataService) BatchExecuteStatement(input *BatchExecuteStatementInput) (*BatchExecuteStatementOutput, error) {
92	req, out := c.BatchExecuteStatementRequest(input)
93	return out, req.Send()
94}
95
96// BatchExecuteStatementWithContext is the same as BatchExecuteStatement with the addition of
97// the ability to pass a context and additional request options.
98//
99// See BatchExecuteStatement for details on how to use this API operation.
100//
101// The context must be non-nil and will be used for request cancellation. If
102// the context is nil a panic will occur. In the future the SDK may create
103// sub-contexts for http.Requests. See https://golang.org/pkg/context/
104// for more information on using Contexts.
105func (c *RDSDataService) BatchExecuteStatementWithContext(ctx aws.Context, input *BatchExecuteStatementInput, opts ...request.Option) (*BatchExecuteStatementOutput, error) {
106	req, out := c.BatchExecuteStatementRequest(input)
107	req.SetContext(ctx)
108	req.ApplyOptions(opts...)
109	return out, req.Send()
110}
111
112const opBeginTransaction = "BeginTransaction"
113
114// BeginTransactionRequest generates a "aws/request.Request" representing the
115// client's request for the BeginTransaction operation. The "output" return
116// value will be populated with the request's response once the request completes
117// successfully.
118//
119// Use "Send" method on the returned Request to send the API call to the service.
120// the "output" return value is not valid until after Send returns without error.
121//
122// See BeginTransaction for more information on using the BeginTransaction
123// API call, and error handling.
124//
125// This method is useful when you want to inject custom logic or configuration
126// into the SDK's request lifecycle. Such as custom headers, or retry logic.
127//
128//
129//    // Example sending a request using the BeginTransactionRequest method.
130//    req, resp := client.BeginTransactionRequest(params)
131//
132//    err := req.Send()
133//    if err == nil { // resp is now filled
134//        fmt.Println(resp)
135//    }
136//
137// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransaction
138func (c *RDSDataService) BeginTransactionRequest(input *BeginTransactionInput) (req *request.Request, output *BeginTransactionOutput) {
139	op := &request.Operation{
140		Name:       opBeginTransaction,
141		HTTPMethod: "POST",
142		HTTPPath:   "/BeginTransaction",
143	}
144
145	if input == nil {
146		input = &BeginTransactionInput{}
147	}
148
149	output = &BeginTransactionOutput{}
150	req = c.newRequest(op, input, output)
151	return
152}
153
154// BeginTransaction API operation for AWS RDS DataService.
155//
156// Starts a SQL transaction.
157//
158//    <important> <p>A transaction can run for a maximum of 24 hours. A transaction
159//    is terminated and rolled back automatically after 24 hours.</p> <p>A transaction
160//    times out if no calls use its transaction ID in three minutes. If a transaction
161//    times out before it's committed, it's rolled back automatically.</p> <p>DDL
162//    statements inside a transaction cause an implicit commit. We recommend
163//    that you run each DDL statement in a separate <code>ExecuteStatement</code>
164//    call with <code>continueAfterTimeout</code> enabled.</p> </important>
165//
166// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
167// with awserr.Error's Code and Message methods to get detailed information about
168// the error.
169//
170// See the AWS API reference guide for AWS RDS DataService's
171// API operation BeginTransaction for usage and error information.
172//
173// Returned Error Types:
174//   * BadRequestException
175//   There is an error in the call or in a SQL statement.
176//
177//   * StatementTimeoutException
178//   The execution of the SQL statement timed out.
179//
180//   * InternalServerErrorException
181//   An internal error occurred.
182//
183//   * ForbiddenException
184//   There are insufficient privileges to make the call.
185//
186//   * ServiceUnavailableError
187//   The service specified by the resourceArn parameter is not available.
188//
189// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransaction
190func (c *RDSDataService) BeginTransaction(input *BeginTransactionInput) (*BeginTransactionOutput, error) {
191	req, out := c.BeginTransactionRequest(input)
192	return out, req.Send()
193}
194
195// BeginTransactionWithContext is the same as BeginTransaction with the addition of
196// the ability to pass a context and additional request options.
197//
198// See BeginTransaction for details on how to use this API operation.
199//
200// The context must be non-nil and will be used for request cancellation. If
201// the context is nil a panic will occur. In the future the SDK may create
202// sub-contexts for http.Requests. See https://golang.org/pkg/context/
203// for more information on using Contexts.
204func (c *RDSDataService) BeginTransactionWithContext(ctx aws.Context, input *BeginTransactionInput, opts ...request.Option) (*BeginTransactionOutput, error) {
205	req, out := c.BeginTransactionRequest(input)
206	req.SetContext(ctx)
207	req.ApplyOptions(opts...)
208	return out, req.Send()
209}
210
211const opCommitTransaction = "CommitTransaction"
212
213// CommitTransactionRequest generates a "aws/request.Request" representing the
214// client's request for the CommitTransaction operation. The "output" return
215// value will be populated with the request's response once the request completes
216// successfully.
217//
218// Use "Send" method on the returned Request to send the API call to the service.
219// the "output" return value is not valid until after Send returns without error.
220//
221// See CommitTransaction for more information on using the CommitTransaction
222// API call, and error handling.
223//
224// This method is useful when you want to inject custom logic or configuration
225// into the SDK's request lifecycle. Such as custom headers, or retry logic.
226//
227//
228//    // Example sending a request using the CommitTransactionRequest method.
229//    req, resp := client.CommitTransactionRequest(params)
230//
231//    err := req.Send()
232//    if err == nil { // resp is now filled
233//        fmt.Println(resp)
234//    }
235//
236// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction
237func (c *RDSDataService) CommitTransactionRequest(input *CommitTransactionInput) (req *request.Request, output *CommitTransactionOutput) {
238	op := &request.Operation{
239		Name:       opCommitTransaction,
240		HTTPMethod: "POST",
241		HTTPPath:   "/CommitTransaction",
242	}
243
244	if input == nil {
245		input = &CommitTransactionInput{}
246	}
247
248	output = &CommitTransactionOutput{}
249	req = c.newRequest(op, input, output)
250	return
251}
252
253// CommitTransaction API operation for AWS RDS DataService.
254//
255// Ends a SQL transaction started with the BeginTransaction operation and commits
256// the changes.
257//
258// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
259// with awserr.Error's Code and Message methods to get detailed information about
260// the error.
261//
262// See the AWS API reference guide for AWS RDS DataService's
263// API operation CommitTransaction for usage and error information.
264//
265// Returned Error Types:
266//   * BadRequestException
267//   There is an error in the call or in a SQL statement.
268//
269//   * StatementTimeoutException
270//   The execution of the SQL statement timed out.
271//
272//   * InternalServerErrorException
273//   An internal error occurred.
274//
275//   * ForbiddenException
276//   There are insufficient privileges to make the call.
277//
278//   * ServiceUnavailableError
279//   The service specified by the resourceArn parameter is not available.
280//
281//   * NotFoundException
282//   The resourceArn, secretArn, or transactionId value can't be found.
283//
284// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction
285func (c *RDSDataService) CommitTransaction(input *CommitTransactionInput) (*CommitTransactionOutput, error) {
286	req, out := c.CommitTransactionRequest(input)
287	return out, req.Send()
288}
289
290// CommitTransactionWithContext is the same as CommitTransaction with the addition of
291// the ability to pass a context and additional request options.
292//
293// See CommitTransaction for details on how to use this API operation.
294//
295// The context must be non-nil and will be used for request cancellation. If
296// the context is nil a panic will occur. In the future the SDK may create
297// sub-contexts for http.Requests. See https://golang.org/pkg/context/
298// for more information on using Contexts.
299func (c *RDSDataService) CommitTransactionWithContext(ctx aws.Context, input *CommitTransactionInput, opts ...request.Option) (*CommitTransactionOutput, error) {
300	req, out := c.CommitTransactionRequest(input)
301	req.SetContext(ctx)
302	req.ApplyOptions(opts...)
303	return out, req.Send()
304}
305
306const opExecuteSql = "ExecuteSql"
307
308// ExecuteSqlRequest generates a "aws/request.Request" representing the
309// client's request for the ExecuteSql operation. The "output" return
310// value will be populated with the request's response once the request completes
311// successfully.
312//
313// Use "Send" method on the returned Request to send the API call to the service.
314// the "output" return value is not valid until after Send returns without error.
315//
316// See ExecuteSql for more information on using the ExecuteSql
317// API call, and error handling.
318//
319// This method is useful when you want to inject custom logic or configuration
320// into the SDK's request lifecycle. Such as custom headers, or retry logic.
321//
322//
323//    // Example sending a request using the ExecuteSqlRequest method.
324//    req, resp := client.ExecuteSqlRequest(params)
325//
326//    err := req.Send()
327//    if err == nil { // resp is now filled
328//        fmt.Println(resp)
329//    }
330//
331// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql
332//
333// Deprecated: The ExecuteSql API is deprecated, please use the ExecuteStatement API.
334func (c *RDSDataService) ExecuteSqlRequest(input *ExecuteSqlInput) (req *request.Request, output *ExecuteSqlOutput) {
335	if c.Client.Config.Logger != nil {
336		c.Client.Config.Logger.Log("This operation, ExecuteSql, has been deprecated")
337	}
338	op := &request.Operation{
339		Name:       opExecuteSql,
340		HTTPMethod: "POST",
341		HTTPPath:   "/ExecuteSql",
342	}
343
344	if input == nil {
345		input = &ExecuteSqlInput{}
346	}
347
348	output = &ExecuteSqlOutput{}
349	req = c.newRequest(op, input, output)
350	return
351}
352
353// ExecuteSql API operation for AWS RDS DataService.
354//
355// Runs one or more SQL statements.
356//
357// This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement
358// operation.
359//
360// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
361// with awserr.Error's Code and Message methods to get detailed information about
362// the error.
363//
364// See the AWS API reference guide for AWS RDS DataService's
365// API operation ExecuteSql for usage and error information.
366//
367// Returned Error Types:
368//   * BadRequestException
369//   There is an error in the call or in a SQL statement.
370//
371//   * InternalServerErrorException
372//   An internal error occurred.
373//
374//   * ForbiddenException
375//   There are insufficient privileges to make the call.
376//
377//   * ServiceUnavailableError
378//   The service specified by the resourceArn parameter is not available.
379//
380// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql
381//
382// Deprecated: The ExecuteSql API is deprecated, please use the ExecuteStatement API.
383func (c *RDSDataService) ExecuteSql(input *ExecuteSqlInput) (*ExecuteSqlOutput, error) {
384	req, out := c.ExecuteSqlRequest(input)
385	return out, req.Send()
386}
387
388// ExecuteSqlWithContext is the same as ExecuteSql with the addition of
389// the ability to pass a context and additional request options.
390//
391// See ExecuteSql for details on how to use this API operation.
392//
393// The context must be non-nil and will be used for request cancellation. If
394// the context is nil a panic will occur. In the future the SDK may create
395// sub-contexts for http.Requests. See https://golang.org/pkg/context/
396// for more information on using Contexts.
397//
398// Deprecated: The ExecuteSql API is deprecated, please use the ExecuteStatement API.
399func (c *RDSDataService) ExecuteSqlWithContext(ctx aws.Context, input *ExecuteSqlInput, opts ...request.Option) (*ExecuteSqlOutput, error) {
400	req, out := c.ExecuteSqlRequest(input)
401	req.SetContext(ctx)
402	req.ApplyOptions(opts...)
403	return out, req.Send()
404}
405
406const opExecuteStatement = "ExecuteStatement"
407
408// ExecuteStatementRequest generates a "aws/request.Request" representing the
409// client's request for the ExecuteStatement operation. The "output" return
410// value will be populated with the request's response once the request completes
411// successfully.
412//
413// Use "Send" method on the returned Request to send the API call to the service.
414// the "output" return value is not valid until after Send returns without error.
415//
416// See ExecuteStatement for more information on using the ExecuteStatement
417// API call, and error handling.
418//
419// This method is useful when you want to inject custom logic or configuration
420// into the SDK's request lifecycle. Such as custom headers, or retry logic.
421//
422//
423//    // Example sending a request using the ExecuteStatementRequest method.
424//    req, resp := client.ExecuteStatementRequest(params)
425//
426//    err := req.Send()
427//    if err == nil { // resp is now filled
428//        fmt.Println(resp)
429//    }
430//
431// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatement
432func (c *RDSDataService) ExecuteStatementRequest(input *ExecuteStatementInput) (req *request.Request, output *ExecuteStatementOutput) {
433	op := &request.Operation{
434		Name:       opExecuteStatement,
435		HTTPMethod: "POST",
436		HTTPPath:   "/Execute",
437	}
438
439	if input == nil {
440		input = &ExecuteStatementInput{}
441	}
442
443	output = &ExecuteStatementOutput{}
444	req = c.newRequest(op, input, output)
445	return
446}
447
448// ExecuteStatement API operation for AWS RDS DataService.
449//
450// Runs a SQL statement against a database.
451//
452// If a call isn't part of a transaction because it doesn't include the transactionID
453// parameter, changes that result from the call are committed automatically.
454//
455// The response size limit is 1 MB. If the call returns more than 1 MB of response
456// data, the call is terminated.
457//
458// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
459// with awserr.Error's Code and Message methods to get detailed information about
460// the error.
461//
462// See the AWS API reference guide for AWS RDS DataService's
463// API operation ExecuteStatement for usage and error information.
464//
465// Returned Error Types:
466//   * BadRequestException
467//   There is an error in the call or in a SQL statement.
468//
469//   * StatementTimeoutException
470//   The execution of the SQL statement timed out.
471//
472//   * InternalServerErrorException
473//   An internal error occurred.
474//
475//   * ForbiddenException
476//   There are insufficient privileges to make the call.
477//
478//   * ServiceUnavailableError
479//   The service specified by the resourceArn parameter is not available.
480//
481// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatement
482func (c *RDSDataService) ExecuteStatement(input *ExecuteStatementInput) (*ExecuteStatementOutput, error) {
483	req, out := c.ExecuteStatementRequest(input)
484	return out, req.Send()
485}
486
487// ExecuteStatementWithContext is the same as ExecuteStatement with the addition of
488// the ability to pass a context and additional request options.
489//
490// See ExecuteStatement for details on how to use this API operation.
491//
492// The context must be non-nil and will be used for request cancellation. If
493// the context is nil a panic will occur. In the future the SDK may create
494// sub-contexts for http.Requests. See https://golang.org/pkg/context/
495// for more information on using Contexts.
496func (c *RDSDataService) ExecuteStatementWithContext(ctx aws.Context, input *ExecuteStatementInput, opts ...request.Option) (*ExecuteStatementOutput, error) {
497	req, out := c.ExecuteStatementRequest(input)
498	req.SetContext(ctx)
499	req.ApplyOptions(opts...)
500	return out, req.Send()
501}
502
503const opRollbackTransaction = "RollbackTransaction"
504
505// RollbackTransactionRequest generates a "aws/request.Request" representing the
506// client's request for the RollbackTransaction operation. The "output" return
507// value will be populated with the request's response once the request completes
508// successfully.
509//
510// Use "Send" method on the returned Request to send the API call to the service.
511// the "output" return value is not valid until after Send returns without error.
512//
513// See RollbackTransaction for more information on using the RollbackTransaction
514// API call, and error handling.
515//
516// This method is useful when you want to inject custom logic or configuration
517// into the SDK's request lifecycle. Such as custom headers, or retry logic.
518//
519//
520//    // Example sending a request using the RollbackTransactionRequest method.
521//    req, resp := client.RollbackTransactionRequest(params)
522//
523//    err := req.Send()
524//    if err == nil { // resp is now filled
525//        fmt.Println(resp)
526//    }
527//
528// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction
529func (c *RDSDataService) RollbackTransactionRequest(input *RollbackTransactionInput) (req *request.Request, output *RollbackTransactionOutput) {
530	op := &request.Operation{
531		Name:       opRollbackTransaction,
532		HTTPMethod: "POST",
533		HTTPPath:   "/RollbackTransaction",
534	}
535
536	if input == nil {
537		input = &RollbackTransactionInput{}
538	}
539
540	output = &RollbackTransactionOutput{}
541	req = c.newRequest(op, input, output)
542	return
543}
544
545// RollbackTransaction API operation for AWS RDS DataService.
546//
547// Performs a rollback of a transaction. Rolling back a transaction cancels
548// its changes.
549//
550// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
551// with awserr.Error's Code and Message methods to get detailed information about
552// the error.
553//
554// See the AWS API reference guide for AWS RDS DataService's
555// API operation RollbackTransaction for usage and error information.
556//
557// Returned Error Types:
558//   * BadRequestException
559//   There is an error in the call or in a SQL statement.
560//
561//   * StatementTimeoutException
562//   The execution of the SQL statement timed out.
563//
564//   * InternalServerErrorException
565//   An internal error occurred.
566//
567//   * ForbiddenException
568//   There are insufficient privileges to make the call.
569//
570//   * ServiceUnavailableError
571//   The service specified by the resourceArn parameter is not available.
572//
573//   * NotFoundException
574//   The resourceArn, secretArn, or transactionId value can't be found.
575//
576// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction
577func (c *RDSDataService) RollbackTransaction(input *RollbackTransactionInput) (*RollbackTransactionOutput, error) {
578	req, out := c.RollbackTransactionRequest(input)
579	return out, req.Send()
580}
581
582// RollbackTransactionWithContext is the same as RollbackTransaction with the addition of
583// the ability to pass a context and additional request options.
584//
585// See RollbackTransaction for details on how to use this API operation.
586//
587// The context must be non-nil and will be used for request cancellation. If
588// the context is nil a panic will occur. In the future the SDK may create
589// sub-contexts for http.Requests. See https://golang.org/pkg/context/
590// for more information on using Contexts.
591func (c *RDSDataService) RollbackTransactionWithContext(ctx aws.Context, input *RollbackTransactionInput, opts ...request.Option) (*RollbackTransactionOutput, error) {
592	req, out := c.RollbackTransactionRequest(input)
593	req.SetContext(ctx)
594	req.ApplyOptions(opts...)
595	return out, req.Send()
596}
597
598// Contains an array.
599type ArrayValue struct {
600	_ struct{} `type:"structure"`
601
602	// An array of arrays.
603	ArrayValues []*ArrayValue `locationName:"arrayValues" type:"list"`
604
605	// An array of Boolean values.
606	BooleanValues []*bool `locationName:"booleanValues" type:"list"`
607
608	// An array of integers.
609	DoubleValues []*float64 `locationName:"doubleValues" type:"list"`
610
611	// An array of floating point numbers.
612	LongValues []*int64 `locationName:"longValues" type:"list"`
613
614	// An array of strings.
615	StringValues []*string `locationName:"stringValues" type:"list"`
616}
617
618// String returns the string representation
619func (s ArrayValue) String() string {
620	return awsutil.Prettify(s)
621}
622
623// GoString returns the string representation
624func (s ArrayValue) GoString() string {
625	return s.String()
626}
627
628// SetArrayValues sets the ArrayValues field's value.
629func (s *ArrayValue) SetArrayValues(v []*ArrayValue) *ArrayValue {
630	s.ArrayValues = v
631	return s
632}
633
634// SetBooleanValues sets the BooleanValues field's value.
635func (s *ArrayValue) SetBooleanValues(v []*bool) *ArrayValue {
636	s.BooleanValues = v
637	return s
638}
639
640// SetDoubleValues sets the DoubleValues field's value.
641func (s *ArrayValue) SetDoubleValues(v []*float64) *ArrayValue {
642	s.DoubleValues = v
643	return s
644}
645
646// SetLongValues sets the LongValues field's value.
647func (s *ArrayValue) SetLongValues(v []*int64) *ArrayValue {
648	s.LongValues = v
649	return s
650}
651
652// SetStringValues sets the StringValues field's value.
653func (s *ArrayValue) SetStringValues(v []*string) *ArrayValue {
654	s.StringValues = v
655	return s
656}
657
658// There is an error in the call or in a SQL statement.
659type BadRequestException struct {
660	_            struct{}                  `type:"structure"`
661	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
662
663	// The error message returned by this BadRequestException error.
664	Message_ *string `locationName:"message" type:"string"`
665}
666
667// String returns the string representation
668func (s BadRequestException) String() string {
669	return awsutil.Prettify(s)
670}
671
672// GoString returns the string representation
673func (s BadRequestException) GoString() string {
674	return s.String()
675}
676
677func newErrorBadRequestException(v protocol.ResponseMetadata) error {
678	return &BadRequestException{
679		RespMetadata: v,
680	}
681}
682
683// Code returns the exception type name.
684func (s *BadRequestException) Code() string {
685	return "BadRequestException"
686}
687
688// Message returns the exception's message.
689func (s *BadRequestException) Message() string {
690	if s.Message_ != nil {
691		return *s.Message_
692	}
693	return ""
694}
695
696// OrigErr always returns nil, satisfies awserr.Error interface.
697func (s *BadRequestException) OrigErr() error {
698	return nil
699}
700
701func (s *BadRequestException) Error() string {
702	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
703}
704
705// Status code returns the HTTP status code for the request's response error.
706func (s *BadRequestException) StatusCode() int {
707	return s.RespMetadata.StatusCode
708}
709
710// RequestID returns the service's response RequestID for request.
711func (s *BadRequestException) RequestID() string {
712	return s.RespMetadata.RequestID
713}
714
715// The request parameters represent the input of a SQL statement over an array
716// of data.
717type BatchExecuteStatementInput struct {
718	_ struct{} `type:"structure"`
719
720	// The name of the database.
721	Database *string `locationName:"database" type:"string"`
722
723	// The parameter set for the batch operation.
724	//
725	// The SQL statement is executed as many times as the number of parameter sets
726	// provided. To execute a SQL statement with no parameters, use one of the following
727	// options:
728	//
729	//    * Specify one or more empty parameter sets.
730	//
731	//    * Use the ExecuteStatement operation instead of the BatchExecuteStatement
732	//    operation.
733	//
734	// Array parameters are not supported.
735	ParameterSets [][]*SqlParameter `locationName:"parameterSets" type:"list"`
736
737	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
738	//
739	// ResourceArn is a required field
740	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
741
742	// The name of the database schema.
743	Schema *string `locationName:"schema" type:"string"`
744
745	// The name or ARN of the secret that enables access to the DB cluster.
746	//
747	// SecretArn is a required field
748	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
749
750	// The SQL statement to run.
751	//
752	// Sql is a required field
753	Sql *string `locationName:"sql" type:"string" required:"true"`
754
755	// The identifier of a transaction that was started by using the BeginTransaction
756	// operation. Specify the transaction ID of the transaction that you want to
757	// include the SQL statement in.
758	//
759	// If the SQL statement is not part of a transaction, don't set this parameter.
760	TransactionId *string `locationName:"transactionId" type:"string"`
761}
762
763// String returns the string representation
764func (s BatchExecuteStatementInput) String() string {
765	return awsutil.Prettify(s)
766}
767
768// GoString returns the string representation
769func (s BatchExecuteStatementInput) GoString() string {
770	return s.String()
771}
772
773// Validate inspects the fields of the type to determine if they are valid.
774func (s *BatchExecuteStatementInput) Validate() error {
775	invalidParams := request.ErrInvalidParams{Context: "BatchExecuteStatementInput"}
776	if s.ResourceArn == nil {
777		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
778	}
779	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
780		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
781	}
782	if s.SecretArn == nil {
783		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
784	}
785	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
786		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
787	}
788	if s.Sql == nil {
789		invalidParams.Add(request.NewErrParamRequired("Sql"))
790	}
791
792	if invalidParams.Len() > 0 {
793		return invalidParams
794	}
795	return nil
796}
797
798// SetDatabase sets the Database field's value.
799func (s *BatchExecuteStatementInput) SetDatabase(v string) *BatchExecuteStatementInput {
800	s.Database = &v
801	return s
802}
803
804// SetParameterSets sets the ParameterSets field's value.
805func (s *BatchExecuteStatementInput) SetParameterSets(v [][]*SqlParameter) *BatchExecuteStatementInput {
806	s.ParameterSets = v
807	return s
808}
809
810// SetResourceArn sets the ResourceArn field's value.
811func (s *BatchExecuteStatementInput) SetResourceArn(v string) *BatchExecuteStatementInput {
812	s.ResourceArn = &v
813	return s
814}
815
816// SetSchema sets the Schema field's value.
817func (s *BatchExecuteStatementInput) SetSchema(v string) *BatchExecuteStatementInput {
818	s.Schema = &v
819	return s
820}
821
822// SetSecretArn sets the SecretArn field's value.
823func (s *BatchExecuteStatementInput) SetSecretArn(v string) *BatchExecuteStatementInput {
824	s.SecretArn = &v
825	return s
826}
827
828// SetSql sets the Sql field's value.
829func (s *BatchExecuteStatementInput) SetSql(v string) *BatchExecuteStatementInput {
830	s.Sql = &v
831	return s
832}
833
834// SetTransactionId sets the TransactionId field's value.
835func (s *BatchExecuteStatementInput) SetTransactionId(v string) *BatchExecuteStatementInput {
836	s.TransactionId = &v
837	return s
838}
839
840// The response elements represent the output of a SQL statement over an array
841// of data.
842type BatchExecuteStatementOutput struct {
843	_ struct{} `type:"structure"`
844
845	// The execution results of each batch entry.
846	UpdateResults []*UpdateResult `locationName:"updateResults" type:"list"`
847}
848
849// String returns the string representation
850func (s BatchExecuteStatementOutput) String() string {
851	return awsutil.Prettify(s)
852}
853
854// GoString returns the string representation
855func (s BatchExecuteStatementOutput) GoString() string {
856	return s.String()
857}
858
859// SetUpdateResults sets the UpdateResults field's value.
860func (s *BatchExecuteStatementOutput) SetUpdateResults(v []*UpdateResult) *BatchExecuteStatementOutput {
861	s.UpdateResults = v
862	return s
863}
864
865// The request parameters represent the input of a request to start a SQL transaction.
866type BeginTransactionInput struct {
867	_ struct{} `type:"structure"`
868
869	// The name of the database.
870	Database *string `locationName:"database" type:"string"`
871
872	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
873	//
874	// ResourceArn is a required field
875	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
876
877	// The name of the database schema.
878	Schema *string `locationName:"schema" type:"string"`
879
880	// The name or ARN of the secret that enables access to the DB cluster.
881	//
882	// SecretArn is a required field
883	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
884}
885
886// String returns the string representation
887func (s BeginTransactionInput) String() string {
888	return awsutil.Prettify(s)
889}
890
891// GoString returns the string representation
892func (s BeginTransactionInput) GoString() string {
893	return s.String()
894}
895
896// Validate inspects the fields of the type to determine if they are valid.
897func (s *BeginTransactionInput) Validate() error {
898	invalidParams := request.ErrInvalidParams{Context: "BeginTransactionInput"}
899	if s.ResourceArn == nil {
900		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
901	}
902	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
903		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
904	}
905	if s.SecretArn == nil {
906		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
907	}
908	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
909		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
910	}
911
912	if invalidParams.Len() > 0 {
913		return invalidParams
914	}
915	return nil
916}
917
918// SetDatabase sets the Database field's value.
919func (s *BeginTransactionInput) SetDatabase(v string) *BeginTransactionInput {
920	s.Database = &v
921	return s
922}
923
924// SetResourceArn sets the ResourceArn field's value.
925func (s *BeginTransactionInput) SetResourceArn(v string) *BeginTransactionInput {
926	s.ResourceArn = &v
927	return s
928}
929
930// SetSchema sets the Schema field's value.
931func (s *BeginTransactionInput) SetSchema(v string) *BeginTransactionInput {
932	s.Schema = &v
933	return s
934}
935
936// SetSecretArn sets the SecretArn field's value.
937func (s *BeginTransactionInput) SetSecretArn(v string) *BeginTransactionInput {
938	s.SecretArn = &v
939	return s
940}
941
942// The response elements represent the output of a request to start a SQL transaction.
943type BeginTransactionOutput struct {
944	_ struct{} `type:"structure"`
945
946	// The transaction ID of the transaction started by the call.
947	TransactionId *string `locationName:"transactionId" type:"string"`
948}
949
950// String returns the string representation
951func (s BeginTransactionOutput) String() string {
952	return awsutil.Prettify(s)
953}
954
955// GoString returns the string representation
956func (s BeginTransactionOutput) GoString() string {
957	return s.String()
958}
959
960// SetTransactionId sets the TransactionId field's value.
961func (s *BeginTransactionOutput) SetTransactionId(v string) *BeginTransactionOutput {
962	s.TransactionId = &v
963	return s
964}
965
966// Contains the metadata for a column.
967type ColumnMetadata struct {
968	_ struct{} `type:"structure"`
969
970	// The type of the column.
971	ArrayBaseColumnType *int64 `locationName:"arrayBaseColumnType" type:"integer"`
972
973	// A value that indicates whether the column increments automatically.
974	IsAutoIncrement *bool `locationName:"isAutoIncrement" type:"boolean"`
975
976	// A value that indicates whether the column is case-sensitive.
977	IsCaseSensitive *bool `locationName:"isCaseSensitive" type:"boolean"`
978
979	// A value that indicates whether the column contains currency values.
980	IsCurrency *bool `locationName:"isCurrency" type:"boolean"`
981
982	// A value that indicates whether an integer column is signed.
983	IsSigned *bool `locationName:"isSigned" type:"boolean"`
984
985	// The label for the column.
986	Label *string `locationName:"label" type:"string"`
987
988	// The name of the column.
989	Name *string `locationName:"name" type:"string"`
990
991	// A value that indicates whether the column is nullable.
992	Nullable *int64 `locationName:"nullable" type:"integer"`
993
994	// The precision value of a decimal number column.
995	Precision *int64 `locationName:"precision" type:"integer"`
996
997	// The scale value of a decimal number column.
998	Scale *int64 `locationName:"scale" type:"integer"`
999
1000	// The name of the schema that owns the table that includes the column.
1001	SchemaName *string `locationName:"schemaName" type:"string"`
1002
1003	// The name of the table that includes the column.
1004	TableName *string `locationName:"tableName" type:"string"`
1005
1006	// The type of the column.
1007	Type *int64 `locationName:"type" type:"integer"`
1008
1009	// The database-specific data type of the column.
1010	TypeName *string `locationName:"typeName" type:"string"`
1011}
1012
1013// String returns the string representation
1014func (s ColumnMetadata) String() string {
1015	return awsutil.Prettify(s)
1016}
1017
1018// GoString returns the string representation
1019func (s ColumnMetadata) GoString() string {
1020	return s.String()
1021}
1022
1023// SetArrayBaseColumnType sets the ArrayBaseColumnType field's value.
1024func (s *ColumnMetadata) SetArrayBaseColumnType(v int64) *ColumnMetadata {
1025	s.ArrayBaseColumnType = &v
1026	return s
1027}
1028
1029// SetIsAutoIncrement sets the IsAutoIncrement field's value.
1030func (s *ColumnMetadata) SetIsAutoIncrement(v bool) *ColumnMetadata {
1031	s.IsAutoIncrement = &v
1032	return s
1033}
1034
1035// SetIsCaseSensitive sets the IsCaseSensitive field's value.
1036func (s *ColumnMetadata) SetIsCaseSensitive(v bool) *ColumnMetadata {
1037	s.IsCaseSensitive = &v
1038	return s
1039}
1040
1041// SetIsCurrency sets the IsCurrency field's value.
1042func (s *ColumnMetadata) SetIsCurrency(v bool) *ColumnMetadata {
1043	s.IsCurrency = &v
1044	return s
1045}
1046
1047// SetIsSigned sets the IsSigned field's value.
1048func (s *ColumnMetadata) SetIsSigned(v bool) *ColumnMetadata {
1049	s.IsSigned = &v
1050	return s
1051}
1052
1053// SetLabel sets the Label field's value.
1054func (s *ColumnMetadata) SetLabel(v string) *ColumnMetadata {
1055	s.Label = &v
1056	return s
1057}
1058
1059// SetName sets the Name field's value.
1060func (s *ColumnMetadata) SetName(v string) *ColumnMetadata {
1061	s.Name = &v
1062	return s
1063}
1064
1065// SetNullable sets the Nullable field's value.
1066func (s *ColumnMetadata) SetNullable(v int64) *ColumnMetadata {
1067	s.Nullable = &v
1068	return s
1069}
1070
1071// SetPrecision sets the Precision field's value.
1072func (s *ColumnMetadata) SetPrecision(v int64) *ColumnMetadata {
1073	s.Precision = &v
1074	return s
1075}
1076
1077// SetScale sets the Scale field's value.
1078func (s *ColumnMetadata) SetScale(v int64) *ColumnMetadata {
1079	s.Scale = &v
1080	return s
1081}
1082
1083// SetSchemaName sets the SchemaName field's value.
1084func (s *ColumnMetadata) SetSchemaName(v string) *ColumnMetadata {
1085	s.SchemaName = &v
1086	return s
1087}
1088
1089// SetTableName sets the TableName field's value.
1090func (s *ColumnMetadata) SetTableName(v string) *ColumnMetadata {
1091	s.TableName = &v
1092	return s
1093}
1094
1095// SetType sets the Type field's value.
1096func (s *ColumnMetadata) SetType(v int64) *ColumnMetadata {
1097	s.Type = &v
1098	return s
1099}
1100
1101// SetTypeName sets the TypeName field's value.
1102func (s *ColumnMetadata) SetTypeName(v string) *ColumnMetadata {
1103	s.TypeName = &v
1104	return s
1105}
1106
1107// The request parameters represent the input of a commit transaction request.
1108type CommitTransactionInput struct {
1109	_ struct{} `type:"structure"`
1110
1111	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
1112	//
1113	// ResourceArn is a required field
1114	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
1115
1116	// The name or ARN of the secret that enables access to the DB cluster.
1117	//
1118	// SecretArn is a required field
1119	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
1120
1121	// The identifier of the transaction to end and commit.
1122	//
1123	// TransactionId is a required field
1124	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
1125}
1126
1127// String returns the string representation
1128func (s CommitTransactionInput) String() string {
1129	return awsutil.Prettify(s)
1130}
1131
1132// GoString returns the string representation
1133func (s CommitTransactionInput) GoString() string {
1134	return s.String()
1135}
1136
1137// Validate inspects the fields of the type to determine if they are valid.
1138func (s *CommitTransactionInput) Validate() error {
1139	invalidParams := request.ErrInvalidParams{Context: "CommitTransactionInput"}
1140	if s.ResourceArn == nil {
1141		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
1142	}
1143	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
1144		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
1145	}
1146	if s.SecretArn == nil {
1147		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
1148	}
1149	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
1150		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
1151	}
1152	if s.TransactionId == nil {
1153		invalidParams.Add(request.NewErrParamRequired("TransactionId"))
1154	}
1155
1156	if invalidParams.Len() > 0 {
1157		return invalidParams
1158	}
1159	return nil
1160}
1161
1162// SetResourceArn sets the ResourceArn field's value.
1163func (s *CommitTransactionInput) SetResourceArn(v string) *CommitTransactionInput {
1164	s.ResourceArn = &v
1165	return s
1166}
1167
1168// SetSecretArn sets the SecretArn field's value.
1169func (s *CommitTransactionInput) SetSecretArn(v string) *CommitTransactionInput {
1170	s.SecretArn = &v
1171	return s
1172}
1173
1174// SetTransactionId sets the TransactionId field's value.
1175func (s *CommitTransactionInput) SetTransactionId(v string) *CommitTransactionInput {
1176	s.TransactionId = &v
1177	return s
1178}
1179
1180// The response elements represent the output of a commit transaction request.
1181type CommitTransactionOutput struct {
1182	_ struct{} `type:"structure"`
1183
1184	// The status of the commit operation.
1185	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
1186}
1187
1188// String returns the string representation
1189func (s CommitTransactionOutput) String() string {
1190	return awsutil.Prettify(s)
1191}
1192
1193// GoString returns the string representation
1194func (s CommitTransactionOutput) GoString() string {
1195	return s.String()
1196}
1197
1198// SetTransactionStatus sets the TransactionStatus field's value.
1199func (s *CommitTransactionOutput) SetTransactionStatus(v string) *CommitTransactionOutput {
1200	s.TransactionStatus = &v
1201	return s
1202}
1203
1204// The request parameters represent the input of a request to run one or more
1205// SQL statements.
1206type ExecuteSqlInput struct {
1207	_ struct{} `type:"structure"`
1208
1209	// The Amazon Resource Name (ARN) of the secret that enables access to the DB
1210	// cluster.
1211	//
1212	// AwsSecretStoreArn is a required field
1213	AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" min:"11" type:"string" required:"true"`
1214
1215	// The name of the database.
1216	Database *string `locationName:"database" type:"string"`
1217
1218	// The ARN of the Aurora Serverless DB cluster.
1219	//
1220	// DbClusterOrInstanceArn is a required field
1221	DbClusterOrInstanceArn *string `locationName:"dbClusterOrInstanceArn" min:"11" type:"string" required:"true"`
1222
1223	// The name of the database schema.
1224	Schema *string `locationName:"schema" type:"string"`
1225
1226	// One or more SQL statements to run on the DB cluster.
1227	//
1228	// You can separate SQL statements from each other with a semicolon (;). Any
1229	// valid SQL statement is permitted, including data definition, data manipulation,
1230	// and commit statements.
1231	//
1232	// SqlStatements is a required field
1233	SqlStatements *string `locationName:"sqlStatements" type:"string" required:"true"`
1234}
1235
1236// String returns the string representation
1237func (s ExecuteSqlInput) String() string {
1238	return awsutil.Prettify(s)
1239}
1240
1241// GoString returns the string representation
1242func (s ExecuteSqlInput) GoString() string {
1243	return s.String()
1244}
1245
1246// Validate inspects the fields of the type to determine if they are valid.
1247func (s *ExecuteSqlInput) Validate() error {
1248	invalidParams := request.ErrInvalidParams{Context: "ExecuteSqlInput"}
1249	if s.AwsSecretStoreArn == nil {
1250		invalidParams.Add(request.NewErrParamRequired("AwsSecretStoreArn"))
1251	}
1252	if s.AwsSecretStoreArn != nil && len(*s.AwsSecretStoreArn) < 11 {
1253		invalidParams.Add(request.NewErrParamMinLen("AwsSecretStoreArn", 11))
1254	}
1255	if s.DbClusterOrInstanceArn == nil {
1256		invalidParams.Add(request.NewErrParamRequired("DbClusterOrInstanceArn"))
1257	}
1258	if s.DbClusterOrInstanceArn != nil && len(*s.DbClusterOrInstanceArn) < 11 {
1259		invalidParams.Add(request.NewErrParamMinLen("DbClusterOrInstanceArn", 11))
1260	}
1261	if s.SqlStatements == nil {
1262		invalidParams.Add(request.NewErrParamRequired("SqlStatements"))
1263	}
1264
1265	if invalidParams.Len() > 0 {
1266		return invalidParams
1267	}
1268	return nil
1269}
1270
1271// SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value.
1272func (s *ExecuteSqlInput) SetAwsSecretStoreArn(v string) *ExecuteSqlInput {
1273	s.AwsSecretStoreArn = &v
1274	return s
1275}
1276
1277// SetDatabase sets the Database field's value.
1278func (s *ExecuteSqlInput) SetDatabase(v string) *ExecuteSqlInput {
1279	s.Database = &v
1280	return s
1281}
1282
1283// SetDbClusterOrInstanceArn sets the DbClusterOrInstanceArn field's value.
1284func (s *ExecuteSqlInput) SetDbClusterOrInstanceArn(v string) *ExecuteSqlInput {
1285	s.DbClusterOrInstanceArn = &v
1286	return s
1287}
1288
1289// SetSchema sets the Schema field's value.
1290func (s *ExecuteSqlInput) SetSchema(v string) *ExecuteSqlInput {
1291	s.Schema = &v
1292	return s
1293}
1294
1295// SetSqlStatements sets the SqlStatements field's value.
1296func (s *ExecuteSqlInput) SetSqlStatements(v string) *ExecuteSqlInput {
1297	s.SqlStatements = &v
1298	return s
1299}
1300
1301// The response elements represent the output of a request to run one or more
1302// SQL statements.
1303type ExecuteSqlOutput struct {
1304	_ struct{} `type:"structure"`
1305
1306	// The results of the SQL statement or statements.
1307	SqlStatementResults []*SqlStatementResult `locationName:"sqlStatementResults" type:"list"`
1308}
1309
1310// String returns the string representation
1311func (s ExecuteSqlOutput) String() string {
1312	return awsutil.Prettify(s)
1313}
1314
1315// GoString returns the string representation
1316func (s ExecuteSqlOutput) GoString() string {
1317	return s.String()
1318}
1319
1320// SetSqlStatementResults sets the SqlStatementResults field's value.
1321func (s *ExecuteSqlOutput) SetSqlStatementResults(v []*SqlStatementResult) *ExecuteSqlOutput {
1322	s.SqlStatementResults = v
1323	return s
1324}
1325
1326// The request parameters represent the input of a request to run a SQL statement
1327// against a database.
1328type ExecuteStatementInput struct {
1329	_ struct{} `type:"structure"`
1330
1331	// A value that indicates whether to continue running the statement after the
1332	// call times out. By default, the statement stops running when the call times
1333	// out.
1334	//
1335	// For DDL statements, we recommend continuing to run the statement after the
1336	// call times out. When a DDL statement terminates before it is finished running,
1337	// it can result in errors and possibly corrupted data structures.
1338	ContinueAfterTimeout *bool `locationName:"continueAfterTimeout" type:"boolean"`
1339
1340	// The name of the database.
1341	Database *string `locationName:"database" type:"string"`
1342
1343	// A value that indicates whether to include metadata in the results.
1344	IncludeResultMetadata *bool `locationName:"includeResultMetadata" type:"boolean"`
1345
1346	// The parameters for the SQL statement.
1347	//
1348	// Array parameters are not supported.
1349	Parameters []*SqlParameter `locationName:"parameters" type:"list"`
1350
1351	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
1352	//
1353	// ResourceArn is a required field
1354	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
1355
1356	// Options that control how the result set is returned.
1357	ResultSetOptions *ResultSetOptions `locationName:"resultSetOptions" type:"structure"`
1358
1359	// The name of the database schema.
1360	//
1361	// Currently, the schema parameter isn't supported.
1362	Schema *string `locationName:"schema" type:"string"`
1363
1364	// The name or ARN of the secret that enables access to the DB cluster.
1365	//
1366	// SecretArn is a required field
1367	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
1368
1369	// The SQL statement to run.
1370	//
1371	// Sql is a required field
1372	Sql *string `locationName:"sql" type:"string" required:"true"`
1373
1374	// The identifier of a transaction that was started by using the BeginTransaction
1375	// operation. Specify the transaction ID of the transaction that you want to
1376	// include the SQL statement in.
1377	//
1378	// If the SQL statement is not part of a transaction, don't set this parameter.
1379	TransactionId *string `locationName:"transactionId" type:"string"`
1380}
1381
1382// String returns the string representation
1383func (s ExecuteStatementInput) String() string {
1384	return awsutil.Prettify(s)
1385}
1386
1387// GoString returns the string representation
1388func (s ExecuteStatementInput) GoString() string {
1389	return s.String()
1390}
1391
1392// Validate inspects the fields of the type to determine if they are valid.
1393func (s *ExecuteStatementInput) Validate() error {
1394	invalidParams := request.ErrInvalidParams{Context: "ExecuteStatementInput"}
1395	if s.ResourceArn == nil {
1396		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
1397	}
1398	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
1399		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
1400	}
1401	if s.SecretArn == nil {
1402		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
1403	}
1404	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
1405		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
1406	}
1407	if s.Sql == nil {
1408		invalidParams.Add(request.NewErrParamRequired("Sql"))
1409	}
1410
1411	if invalidParams.Len() > 0 {
1412		return invalidParams
1413	}
1414	return nil
1415}
1416
1417// SetContinueAfterTimeout sets the ContinueAfterTimeout field's value.
1418func (s *ExecuteStatementInput) SetContinueAfterTimeout(v bool) *ExecuteStatementInput {
1419	s.ContinueAfterTimeout = &v
1420	return s
1421}
1422
1423// SetDatabase sets the Database field's value.
1424func (s *ExecuteStatementInput) SetDatabase(v string) *ExecuteStatementInput {
1425	s.Database = &v
1426	return s
1427}
1428
1429// SetIncludeResultMetadata sets the IncludeResultMetadata field's value.
1430func (s *ExecuteStatementInput) SetIncludeResultMetadata(v bool) *ExecuteStatementInput {
1431	s.IncludeResultMetadata = &v
1432	return s
1433}
1434
1435// SetParameters sets the Parameters field's value.
1436func (s *ExecuteStatementInput) SetParameters(v []*SqlParameter) *ExecuteStatementInput {
1437	s.Parameters = v
1438	return s
1439}
1440
1441// SetResourceArn sets the ResourceArn field's value.
1442func (s *ExecuteStatementInput) SetResourceArn(v string) *ExecuteStatementInput {
1443	s.ResourceArn = &v
1444	return s
1445}
1446
1447// SetResultSetOptions sets the ResultSetOptions field's value.
1448func (s *ExecuteStatementInput) SetResultSetOptions(v *ResultSetOptions) *ExecuteStatementInput {
1449	s.ResultSetOptions = v
1450	return s
1451}
1452
1453// SetSchema sets the Schema field's value.
1454func (s *ExecuteStatementInput) SetSchema(v string) *ExecuteStatementInput {
1455	s.Schema = &v
1456	return s
1457}
1458
1459// SetSecretArn sets the SecretArn field's value.
1460func (s *ExecuteStatementInput) SetSecretArn(v string) *ExecuteStatementInput {
1461	s.SecretArn = &v
1462	return s
1463}
1464
1465// SetSql sets the Sql field's value.
1466func (s *ExecuteStatementInput) SetSql(v string) *ExecuteStatementInput {
1467	s.Sql = &v
1468	return s
1469}
1470
1471// SetTransactionId sets the TransactionId field's value.
1472func (s *ExecuteStatementInput) SetTransactionId(v string) *ExecuteStatementInput {
1473	s.TransactionId = &v
1474	return s
1475}
1476
1477// The response elements represent the output of a request to run a SQL statement
1478// against a database.
1479type ExecuteStatementOutput struct {
1480	_ struct{} `type:"structure"`
1481
1482	// Metadata for the columns included in the results.
1483	ColumnMetadata []*ColumnMetadata `locationName:"columnMetadata" type:"list"`
1484
1485	// Values for fields generated during the request.
1486	//
1487	//    <note> <p>The <code>generatedFields</code> data isn't supported by Aurora
1488	//    PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code>
1489	//    clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
1490	//    Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
1491	GeneratedFields []*Field `locationName:"generatedFields" type:"list"`
1492
1493	// The number of records updated by the request.
1494	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`
1495
1496	// The records returned by the SQL statement.
1497	Records [][]*Field `locationName:"records" type:"list"`
1498}
1499
1500// String returns the string representation
1501func (s ExecuteStatementOutput) String() string {
1502	return awsutil.Prettify(s)
1503}
1504
1505// GoString returns the string representation
1506func (s ExecuteStatementOutput) GoString() string {
1507	return s.String()
1508}
1509
1510// SetColumnMetadata sets the ColumnMetadata field's value.
1511func (s *ExecuteStatementOutput) SetColumnMetadata(v []*ColumnMetadata) *ExecuteStatementOutput {
1512	s.ColumnMetadata = v
1513	return s
1514}
1515
1516// SetGeneratedFields sets the GeneratedFields field's value.
1517func (s *ExecuteStatementOutput) SetGeneratedFields(v []*Field) *ExecuteStatementOutput {
1518	s.GeneratedFields = v
1519	return s
1520}
1521
1522// SetNumberOfRecordsUpdated sets the NumberOfRecordsUpdated field's value.
1523func (s *ExecuteStatementOutput) SetNumberOfRecordsUpdated(v int64) *ExecuteStatementOutput {
1524	s.NumberOfRecordsUpdated = &v
1525	return s
1526}
1527
1528// SetRecords sets the Records field's value.
1529func (s *ExecuteStatementOutput) SetRecords(v [][]*Field) *ExecuteStatementOutput {
1530	s.Records = v
1531	return s
1532}
1533
1534// Contains a value.
1535type Field struct {
1536	_ struct{} `type:"structure"`
1537
1538	// An array of values.
1539	ArrayValue *ArrayValue `locationName:"arrayValue" type:"structure"`
1540
1541	// A value of BLOB data type.
1542	//
1543	// BlobValue is automatically base64 encoded/decoded by the SDK.
1544	BlobValue []byte `locationName:"blobValue" type:"blob"`
1545
1546	// A value of Boolean data type.
1547	BooleanValue *bool `locationName:"booleanValue" type:"boolean"`
1548
1549	// A value of double data type.
1550	DoubleValue *float64 `locationName:"doubleValue" type:"double"`
1551
1552	// A NULL value.
1553	IsNull *bool `locationName:"isNull" type:"boolean"`
1554
1555	// A value of long data type.
1556	LongValue *int64 `locationName:"longValue" type:"long"`
1557
1558	// A value of string data type.
1559	StringValue *string `locationName:"stringValue" type:"string"`
1560}
1561
1562// String returns the string representation
1563func (s Field) String() string {
1564	return awsutil.Prettify(s)
1565}
1566
1567// GoString returns the string representation
1568func (s Field) GoString() string {
1569	return s.String()
1570}
1571
1572// SetArrayValue sets the ArrayValue field's value.
1573func (s *Field) SetArrayValue(v *ArrayValue) *Field {
1574	s.ArrayValue = v
1575	return s
1576}
1577
1578// SetBlobValue sets the BlobValue field's value.
1579func (s *Field) SetBlobValue(v []byte) *Field {
1580	s.BlobValue = v
1581	return s
1582}
1583
1584// SetBooleanValue sets the BooleanValue field's value.
1585func (s *Field) SetBooleanValue(v bool) *Field {
1586	s.BooleanValue = &v
1587	return s
1588}
1589
1590// SetDoubleValue sets the DoubleValue field's value.
1591func (s *Field) SetDoubleValue(v float64) *Field {
1592	s.DoubleValue = &v
1593	return s
1594}
1595
1596// SetIsNull sets the IsNull field's value.
1597func (s *Field) SetIsNull(v bool) *Field {
1598	s.IsNull = &v
1599	return s
1600}
1601
1602// SetLongValue sets the LongValue field's value.
1603func (s *Field) SetLongValue(v int64) *Field {
1604	s.LongValue = &v
1605	return s
1606}
1607
1608// SetStringValue sets the StringValue field's value.
1609func (s *Field) SetStringValue(v string) *Field {
1610	s.StringValue = &v
1611	return s
1612}
1613
1614// There are insufficient privileges to make the call.
1615type ForbiddenException struct {
1616	_            struct{}                  `type:"structure"`
1617	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1618
1619	// The error message returned by this ForbiddenException error.
1620	Message_ *string `locationName:"message" type:"string"`
1621}
1622
1623// String returns the string representation
1624func (s ForbiddenException) String() string {
1625	return awsutil.Prettify(s)
1626}
1627
1628// GoString returns the string representation
1629func (s ForbiddenException) GoString() string {
1630	return s.String()
1631}
1632
1633func newErrorForbiddenException(v protocol.ResponseMetadata) error {
1634	return &ForbiddenException{
1635		RespMetadata: v,
1636	}
1637}
1638
1639// Code returns the exception type name.
1640func (s *ForbiddenException) Code() string {
1641	return "ForbiddenException"
1642}
1643
1644// Message returns the exception's message.
1645func (s *ForbiddenException) Message() string {
1646	if s.Message_ != nil {
1647		return *s.Message_
1648	}
1649	return ""
1650}
1651
1652// OrigErr always returns nil, satisfies awserr.Error interface.
1653func (s *ForbiddenException) OrigErr() error {
1654	return nil
1655}
1656
1657func (s *ForbiddenException) Error() string {
1658	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1659}
1660
1661// Status code returns the HTTP status code for the request's response error.
1662func (s *ForbiddenException) StatusCode() int {
1663	return s.RespMetadata.StatusCode
1664}
1665
1666// RequestID returns the service's response RequestID for request.
1667func (s *ForbiddenException) RequestID() string {
1668	return s.RespMetadata.RequestID
1669}
1670
1671// An internal error occurred.
1672type InternalServerErrorException struct {
1673	_            struct{}                  `type:"structure"`
1674	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1675
1676	Message_ *string `locationName:"message" type:"string"`
1677}
1678
1679// String returns the string representation
1680func (s InternalServerErrorException) String() string {
1681	return awsutil.Prettify(s)
1682}
1683
1684// GoString returns the string representation
1685func (s InternalServerErrorException) GoString() string {
1686	return s.String()
1687}
1688
1689func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
1690	return &InternalServerErrorException{
1691		RespMetadata: v,
1692	}
1693}
1694
1695// Code returns the exception type name.
1696func (s *InternalServerErrorException) Code() string {
1697	return "InternalServerErrorException"
1698}
1699
1700// Message returns the exception's message.
1701func (s *InternalServerErrorException) Message() string {
1702	if s.Message_ != nil {
1703		return *s.Message_
1704	}
1705	return ""
1706}
1707
1708// OrigErr always returns nil, satisfies awserr.Error interface.
1709func (s *InternalServerErrorException) OrigErr() error {
1710	return nil
1711}
1712
1713func (s *InternalServerErrorException) Error() string {
1714	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1715}
1716
1717// Status code returns the HTTP status code for the request's response error.
1718func (s *InternalServerErrorException) StatusCode() int {
1719	return s.RespMetadata.StatusCode
1720}
1721
1722// RequestID returns the service's response RequestID for request.
1723func (s *InternalServerErrorException) RequestID() string {
1724	return s.RespMetadata.RequestID
1725}
1726
1727// The resourceArn, secretArn, or transactionId value can't be found.
1728type NotFoundException struct {
1729	_            struct{}                  `type:"structure"`
1730	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1731
1732	// The error message returned by this NotFoundException error.
1733	Message_ *string `locationName:"message" type:"string"`
1734}
1735
1736// String returns the string representation
1737func (s NotFoundException) String() string {
1738	return awsutil.Prettify(s)
1739}
1740
1741// GoString returns the string representation
1742func (s NotFoundException) GoString() string {
1743	return s.String()
1744}
1745
1746func newErrorNotFoundException(v protocol.ResponseMetadata) error {
1747	return &NotFoundException{
1748		RespMetadata: v,
1749	}
1750}
1751
1752// Code returns the exception type name.
1753func (s *NotFoundException) Code() string {
1754	return "NotFoundException"
1755}
1756
1757// Message returns the exception's message.
1758func (s *NotFoundException) Message() string {
1759	if s.Message_ != nil {
1760		return *s.Message_
1761	}
1762	return ""
1763}
1764
1765// OrigErr always returns nil, satisfies awserr.Error interface.
1766func (s *NotFoundException) OrigErr() error {
1767	return nil
1768}
1769
1770func (s *NotFoundException) Error() string {
1771	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1772}
1773
1774// Status code returns the HTTP status code for the request's response error.
1775func (s *NotFoundException) StatusCode() int {
1776	return s.RespMetadata.StatusCode
1777}
1778
1779// RequestID returns the service's response RequestID for request.
1780func (s *NotFoundException) RequestID() string {
1781	return s.RespMetadata.RequestID
1782}
1783
1784// A record returned by a call.
1785type Record struct {
1786	_ struct{} `type:"structure"`
1787
1788	// The values returned in the record.
1789	Values []*Value `locationName:"values" type:"list"`
1790}
1791
1792// String returns the string representation
1793func (s Record) String() string {
1794	return awsutil.Prettify(s)
1795}
1796
1797// GoString returns the string representation
1798func (s Record) GoString() string {
1799	return s.String()
1800}
1801
1802// SetValues sets the Values field's value.
1803func (s *Record) SetValues(v []*Value) *Record {
1804	s.Values = v
1805	return s
1806}
1807
1808// The result set returned by a SQL statement.
1809type ResultFrame struct {
1810	_ struct{} `type:"structure"`
1811
1812	// The records in the result set.
1813	Records []*Record `locationName:"records" type:"list"`
1814
1815	// The result-set metadata in the result set.
1816	ResultSetMetadata *ResultSetMetadata `locationName:"resultSetMetadata" type:"structure"`
1817}
1818
1819// String returns the string representation
1820func (s ResultFrame) String() string {
1821	return awsutil.Prettify(s)
1822}
1823
1824// GoString returns the string representation
1825func (s ResultFrame) GoString() string {
1826	return s.String()
1827}
1828
1829// SetRecords sets the Records field's value.
1830func (s *ResultFrame) SetRecords(v []*Record) *ResultFrame {
1831	s.Records = v
1832	return s
1833}
1834
1835// SetResultSetMetadata sets the ResultSetMetadata field's value.
1836func (s *ResultFrame) SetResultSetMetadata(v *ResultSetMetadata) *ResultFrame {
1837	s.ResultSetMetadata = v
1838	return s
1839}
1840
1841// The metadata of the result set returned by a SQL statement.
1842type ResultSetMetadata struct {
1843	_ struct{} `type:"structure"`
1844
1845	// The number of columns in the result set.
1846	ColumnCount *int64 `locationName:"columnCount" type:"long"`
1847
1848	// The metadata of the columns in the result set.
1849	ColumnMetadata []*ColumnMetadata `locationName:"columnMetadata" type:"list"`
1850}
1851
1852// String returns the string representation
1853func (s ResultSetMetadata) String() string {
1854	return awsutil.Prettify(s)
1855}
1856
1857// GoString returns the string representation
1858func (s ResultSetMetadata) GoString() string {
1859	return s.String()
1860}
1861
1862// SetColumnCount sets the ColumnCount field's value.
1863func (s *ResultSetMetadata) SetColumnCount(v int64) *ResultSetMetadata {
1864	s.ColumnCount = &v
1865	return s
1866}
1867
1868// SetColumnMetadata sets the ColumnMetadata field's value.
1869func (s *ResultSetMetadata) SetColumnMetadata(v []*ColumnMetadata) *ResultSetMetadata {
1870	s.ColumnMetadata = v
1871	return s
1872}
1873
1874// Options that control how the result set is returned.
1875type ResultSetOptions struct {
1876	_ struct{} `type:"structure"`
1877
1878	// A value that indicates how a field of DECIMAL type is represented in the
1879	// response. The value of STRING, the default, specifies that it is converted
1880	// to a String value. The value of DOUBLE_OR_LONG specifies that it is converted
1881	// to a Long value if its scale is 0, or to a Double value otherwise.
1882	//
1883	// Conversion to Double or Long can result in roundoff errors due to precision
1884	// loss. We recommend converting to String, especially when working with currency
1885	// values.
1886	DecimalReturnType *string `locationName:"decimalReturnType" type:"string" enum:"DecimalReturnType"`
1887}
1888
1889// String returns the string representation
1890func (s ResultSetOptions) String() string {
1891	return awsutil.Prettify(s)
1892}
1893
1894// GoString returns the string representation
1895func (s ResultSetOptions) GoString() string {
1896	return s.String()
1897}
1898
1899// SetDecimalReturnType sets the DecimalReturnType field's value.
1900func (s *ResultSetOptions) SetDecimalReturnType(v string) *ResultSetOptions {
1901	s.DecimalReturnType = &v
1902	return s
1903}
1904
1905// The request parameters represent the input of a request to perform a rollback
1906// of a transaction.
1907type RollbackTransactionInput struct {
1908	_ struct{} `type:"structure"`
1909
1910	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
1911	//
1912	// ResourceArn is a required field
1913	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
1914
1915	// The name or ARN of the secret that enables access to the DB cluster.
1916	//
1917	// SecretArn is a required field
1918	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
1919
1920	// The identifier of the transaction to roll back.
1921	//
1922	// TransactionId is a required field
1923	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
1924}
1925
1926// String returns the string representation
1927func (s RollbackTransactionInput) String() string {
1928	return awsutil.Prettify(s)
1929}
1930
1931// GoString returns the string representation
1932func (s RollbackTransactionInput) GoString() string {
1933	return s.String()
1934}
1935
1936// Validate inspects the fields of the type to determine if they are valid.
1937func (s *RollbackTransactionInput) Validate() error {
1938	invalidParams := request.ErrInvalidParams{Context: "RollbackTransactionInput"}
1939	if s.ResourceArn == nil {
1940		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
1941	}
1942	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
1943		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
1944	}
1945	if s.SecretArn == nil {
1946		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
1947	}
1948	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
1949		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
1950	}
1951	if s.TransactionId == nil {
1952		invalidParams.Add(request.NewErrParamRequired("TransactionId"))
1953	}
1954
1955	if invalidParams.Len() > 0 {
1956		return invalidParams
1957	}
1958	return nil
1959}
1960
1961// SetResourceArn sets the ResourceArn field's value.
1962func (s *RollbackTransactionInput) SetResourceArn(v string) *RollbackTransactionInput {
1963	s.ResourceArn = &v
1964	return s
1965}
1966
1967// SetSecretArn sets the SecretArn field's value.
1968func (s *RollbackTransactionInput) SetSecretArn(v string) *RollbackTransactionInput {
1969	s.SecretArn = &v
1970	return s
1971}
1972
1973// SetTransactionId sets the TransactionId field's value.
1974func (s *RollbackTransactionInput) SetTransactionId(v string) *RollbackTransactionInput {
1975	s.TransactionId = &v
1976	return s
1977}
1978
1979// The response elements represent the output of a request to perform a rollback
1980// of a transaction.
1981type RollbackTransactionOutput struct {
1982	_ struct{} `type:"structure"`
1983
1984	// The status of the rollback operation.
1985	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
1986}
1987
1988// String returns the string representation
1989func (s RollbackTransactionOutput) String() string {
1990	return awsutil.Prettify(s)
1991}
1992
1993// GoString returns the string representation
1994func (s RollbackTransactionOutput) GoString() string {
1995	return s.String()
1996}
1997
1998// SetTransactionStatus sets the TransactionStatus field's value.
1999func (s *RollbackTransactionOutput) SetTransactionStatus(v string) *RollbackTransactionOutput {
2000	s.TransactionStatus = &v
2001	return s
2002}
2003
2004// The service specified by the resourceArn parameter is not available.
2005type ServiceUnavailableError struct {
2006	_            struct{}                  `type:"structure"`
2007	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2008
2009	Message_ *string `locationName:"message" type:"string"`
2010}
2011
2012// String returns the string representation
2013func (s ServiceUnavailableError) String() string {
2014	return awsutil.Prettify(s)
2015}
2016
2017// GoString returns the string representation
2018func (s ServiceUnavailableError) GoString() string {
2019	return s.String()
2020}
2021
2022func newErrorServiceUnavailableError(v protocol.ResponseMetadata) error {
2023	return &ServiceUnavailableError{
2024		RespMetadata: v,
2025	}
2026}
2027
2028// Code returns the exception type name.
2029func (s *ServiceUnavailableError) Code() string {
2030	return "ServiceUnavailableError"
2031}
2032
2033// Message returns the exception's message.
2034func (s *ServiceUnavailableError) Message() string {
2035	if s.Message_ != nil {
2036		return *s.Message_
2037	}
2038	return ""
2039}
2040
2041// OrigErr always returns nil, satisfies awserr.Error interface.
2042func (s *ServiceUnavailableError) OrigErr() error {
2043	return nil
2044}
2045
2046func (s *ServiceUnavailableError) Error() string {
2047	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2048}
2049
2050// Status code returns the HTTP status code for the request's response error.
2051func (s *ServiceUnavailableError) StatusCode() int {
2052	return s.RespMetadata.StatusCode
2053}
2054
2055// RequestID returns the service's response RequestID for request.
2056func (s *ServiceUnavailableError) RequestID() string {
2057	return s.RespMetadata.RequestID
2058}
2059
2060// A parameter used in a SQL statement.
2061type SqlParameter struct {
2062	_ struct{} `type:"structure"`
2063
2064	// The name of the parameter.
2065	Name *string `locationName:"name" type:"string"`
2066
2067	// A hint that specifies the correct object type for data type mapping. Possible
2068	// values are as follows:
2069	//
2070	//    * DATE - The corresponding String parameter value is sent as an object
2071	//    of DATE type to the database. The accepted format is YYYY-MM-DD.
2072	//
2073	//    * DECIMAL - The corresponding String parameter value is sent as an object
2074	//    of DECIMAL type to the database.
2075	//
2076	//    * JSON - The corresponding String parameter value is sent as an object
2077	//    of JSON type to the database.
2078	//
2079	//    * TIME - The corresponding String parameter value is sent as an object
2080	//    of TIME type to the database. The accepted format is HH:MM:SS[.FFF].
2081	//
2082	//    * TIMESTAMP - The corresponding String parameter value is sent as an object
2083	//    of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
2084	//
2085	//    * UUID - The corresponding String parameter value is sent as an object
2086	//    of UUID type to the database.
2087	TypeHint *string `locationName:"typeHint" type:"string" enum:"TypeHint"`
2088
2089	// The value of the parameter.
2090	Value *Field `locationName:"value" type:"structure"`
2091}
2092
2093// String returns the string representation
2094func (s SqlParameter) String() string {
2095	return awsutil.Prettify(s)
2096}
2097
2098// GoString returns the string representation
2099func (s SqlParameter) GoString() string {
2100	return s.String()
2101}
2102
2103// SetName sets the Name field's value.
2104func (s *SqlParameter) SetName(v string) *SqlParameter {
2105	s.Name = &v
2106	return s
2107}
2108
2109// SetTypeHint sets the TypeHint field's value.
2110func (s *SqlParameter) SetTypeHint(v string) *SqlParameter {
2111	s.TypeHint = &v
2112	return s
2113}
2114
2115// SetValue sets the Value field's value.
2116func (s *SqlParameter) SetValue(v *Field) *SqlParameter {
2117	s.Value = v
2118	return s
2119}
2120
2121// The result of a SQL statement.
2122//
2123//    <important> <p>This data type is deprecated.</p> </important>
2124type SqlStatementResult struct {
2125	_ struct{} `type:"structure"`
2126
2127	// The number of records updated by a SQL statement.
2128	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`
2129
2130	// The result set of the SQL statement.
2131	ResultFrame *ResultFrame `locationName:"resultFrame" type:"structure"`
2132}
2133
2134// String returns the string representation
2135func (s SqlStatementResult) String() string {
2136	return awsutil.Prettify(s)
2137}
2138
2139// GoString returns the string representation
2140func (s SqlStatementResult) GoString() string {
2141	return s.String()
2142}
2143
2144// SetNumberOfRecordsUpdated sets the NumberOfRecordsUpdated field's value.
2145func (s *SqlStatementResult) SetNumberOfRecordsUpdated(v int64) *SqlStatementResult {
2146	s.NumberOfRecordsUpdated = &v
2147	return s
2148}
2149
2150// SetResultFrame sets the ResultFrame field's value.
2151func (s *SqlStatementResult) SetResultFrame(v *ResultFrame) *SqlStatementResult {
2152	s.ResultFrame = v
2153	return s
2154}
2155
2156// The execution of the SQL statement timed out.
2157type StatementTimeoutException struct {
2158	_            struct{}                  `type:"structure"`
2159	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2160
2161	// The database connection ID that executed the SQL statement.
2162	DbConnectionId *int64 `locationName:"dbConnectionId" type:"long"`
2163
2164	// The error message returned by this StatementTimeoutException error.
2165	Message_ *string `locationName:"message" type:"string"`
2166}
2167
2168// String returns the string representation
2169func (s StatementTimeoutException) String() string {
2170	return awsutil.Prettify(s)
2171}
2172
2173// GoString returns the string representation
2174func (s StatementTimeoutException) GoString() string {
2175	return s.String()
2176}
2177
2178func newErrorStatementTimeoutException(v protocol.ResponseMetadata) error {
2179	return &StatementTimeoutException{
2180		RespMetadata: v,
2181	}
2182}
2183
2184// Code returns the exception type name.
2185func (s *StatementTimeoutException) Code() string {
2186	return "StatementTimeoutException"
2187}
2188
2189// Message returns the exception's message.
2190func (s *StatementTimeoutException) Message() string {
2191	if s.Message_ != nil {
2192		return *s.Message_
2193	}
2194	return ""
2195}
2196
2197// OrigErr always returns nil, satisfies awserr.Error interface.
2198func (s *StatementTimeoutException) OrigErr() error {
2199	return nil
2200}
2201
2202func (s *StatementTimeoutException) Error() string {
2203	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
2204}
2205
2206// Status code returns the HTTP status code for the request's response error.
2207func (s *StatementTimeoutException) StatusCode() int {
2208	return s.RespMetadata.StatusCode
2209}
2210
2211// RequestID returns the service's response RequestID for request.
2212func (s *StatementTimeoutException) RequestID() string {
2213	return s.RespMetadata.RequestID
2214}
2215
2216// A structure value returned by a call.
2217type StructValue struct {
2218	_ struct{} `type:"structure"`
2219
2220	// The attributes returned in the record.
2221	Attributes []*Value `locationName:"attributes" type:"list"`
2222}
2223
2224// String returns the string representation
2225func (s StructValue) String() string {
2226	return awsutil.Prettify(s)
2227}
2228
2229// GoString returns the string representation
2230func (s StructValue) GoString() string {
2231	return s.String()
2232}
2233
2234// SetAttributes sets the Attributes field's value.
2235func (s *StructValue) SetAttributes(v []*Value) *StructValue {
2236	s.Attributes = v
2237	return s
2238}
2239
2240// The response elements represent the results of an update.
2241type UpdateResult struct {
2242	_ struct{} `type:"structure"`
2243
2244	// Values for fields generated during the request.
2245	GeneratedFields []*Field `locationName:"generatedFields" type:"list"`
2246}
2247
2248// String returns the string representation
2249func (s UpdateResult) String() string {
2250	return awsutil.Prettify(s)
2251}
2252
2253// GoString returns the string representation
2254func (s UpdateResult) GoString() string {
2255	return s.String()
2256}
2257
2258// SetGeneratedFields sets the GeneratedFields field's value.
2259func (s *UpdateResult) SetGeneratedFields(v []*Field) *UpdateResult {
2260	s.GeneratedFields = v
2261	return s
2262}
2263
2264// Contains the value of a column.
2265//
2266//    <important> <p>This data type is deprecated.</p> </important>
2267type Value struct {
2268	_ struct{} `type:"structure"`
2269
2270	// An array of column values.
2271	ArrayValues []*Value `locationName:"arrayValues" type:"list"`
2272
2273	// A value for a column of big integer data type.
2274	BigIntValue *int64 `locationName:"bigIntValue" type:"long"`
2275
2276	// A value for a column of BIT data type.
2277	BitValue *bool `locationName:"bitValue" type:"boolean"`
2278
2279	// A value for a column of BLOB data type.
2280	//
2281	// BlobValue is automatically base64 encoded/decoded by the SDK.
2282	BlobValue []byte `locationName:"blobValue" type:"blob"`
2283
2284	// A value for a column of double data type.
2285	DoubleValue *float64 `locationName:"doubleValue" type:"double"`
2286
2287	// A value for a column of integer data type.
2288	IntValue *int64 `locationName:"intValue" type:"integer"`
2289
2290	// A NULL value.
2291	IsNull *bool `locationName:"isNull" type:"boolean"`
2292
2293	// A value for a column of real data type.
2294	RealValue *float64 `locationName:"realValue" type:"float"`
2295
2296	// A value for a column of string data type.
2297	StringValue *string `locationName:"stringValue" type:"string"`
2298
2299	// A value for a column of STRUCT data type.
2300	StructValue *StructValue `locationName:"structValue" type:"structure"`
2301}
2302
2303// String returns the string representation
2304func (s Value) String() string {
2305	return awsutil.Prettify(s)
2306}
2307
2308// GoString returns the string representation
2309func (s Value) GoString() string {
2310	return s.String()
2311}
2312
2313// SetArrayValues sets the ArrayValues field's value.
2314func (s *Value) SetArrayValues(v []*Value) *Value {
2315	s.ArrayValues = v
2316	return s
2317}
2318
2319// SetBigIntValue sets the BigIntValue field's value.
2320func (s *Value) SetBigIntValue(v int64) *Value {
2321	s.BigIntValue = &v
2322	return s
2323}
2324
2325// SetBitValue sets the BitValue field's value.
2326func (s *Value) SetBitValue(v bool) *Value {
2327	s.BitValue = &v
2328	return s
2329}
2330
2331// SetBlobValue sets the BlobValue field's value.
2332func (s *Value) SetBlobValue(v []byte) *Value {
2333	s.BlobValue = v
2334	return s
2335}
2336
2337// SetDoubleValue sets the DoubleValue field's value.
2338func (s *Value) SetDoubleValue(v float64) *Value {
2339	s.DoubleValue = &v
2340	return s
2341}
2342
2343// SetIntValue sets the IntValue field's value.
2344func (s *Value) SetIntValue(v int64) *Value {
2345	s.IntValue = &v
2346	return s
2347}
2348
2349// SetIsNull sets the IsNull field's value.
2350func (s *Value) SetIsNull(v bool) *Value {
2351	s.IsNull = &v
2352	return s
2353}
2354
2355// SetRealValue sets the RealValue field's value.
2356func (s *Value) SetRealValue(v float64) *Value {
2357	s.RealValue = &v
2358	return s
2359}
2360
2361// SetStringValue sets the StringValue field's value.
2362func (s *Value) SetStringValue(v string) *Value {
2363	s.StringValue = &v
2364	return s
2365}
2366
2367// SetStructValue sets the StructValue field's value.
2368func (s *Value) SetStructValue(v *StructValue) *Value {
2369	s.StructValue = v
2370	return s
2371}
2372
2373const (
2374	// DecimalReturnTypeString is a DecimalReturnType enum value
2375	DecimalReturnTypeString = "STRING"
2376
2377	// DecimalReturnTypeDoubleOrLong is a DecimalReturnType enum value
2378	DecimalReturnTypeDoubleOrLong = "DOUBLE_OR_LONG"
2379)
2380
2381// DecimalReturnType_Values returns all elements of the DecimalReturnType enum
2382func DecimalReturnType_Values() []string {
2383	return []string{
2384		DecimalReturnTypeString,
2385		DecimalReturnTypeDoubleOrLong,
2386	}
2387}
2388
2389const (
2390	// TypeHintJson is a TypeHint enum value
2391	TypeHintJson = "JSON"
2392
2393	// TypeHintUuid is a TypeHint enum value
2394	TypeHintUuid = "UUID"
2395
2396	// TypeHintTimestamp is a TypeHint enum value
2397	TypeHintTimestamp = "TIMESTAMP"
2398
2399	// TypeHintDate is a TypeHint enum value
2400	TypeHintDate = "DATE"
2401
2402	// TypeHintTime is a TypeHint enum value
2403	TypeHintTime = "TIME"
2404
2405	// TypeHintDecimal is a TypeHint enum value
2406	TypeHintDecimal = "DECIMAL"
2407)
2408
2409// TypeHint_Values returns all elements of the TypeHint enum
2410func TypeHint_Values() []string {
2411	return []string{
2412		TypeHintJson,
2413		TypeHintUuid,
2414		TypeHintTimestamp,
2415		TypeHintDate,
2416		TypeHintTime,
2417		TypeHintDecimal,
2418	}
2419}
2420