github.com/aavshr/aws-sdk-go@v1.41.3/service/rdsdataservice/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package rdsdataservice
     4  
     5  import (
     6  	"fmt"
     7  
     8  	"github.com/aavshr/aws-sdk-go/aws"
     9  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    10  	"github.com/aavshr/aws-sdk-go/aws/request"
    11  	"github.com/aavshr/aws-sdk-go/private/protocol"
    12  )
    13  
    14  const 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
    40  func (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
    91  func (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.
   105  func (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  
   112  const 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
   138  func (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
   190  func (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.
   204  func (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  
   211  const 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
   237  func (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
   285  func (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.
   299  func (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  
   306  const 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.
   334  func (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.
   383  func (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.
   399  func (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  
   406  const 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
   432  func (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
   482  func (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.
   496  func (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  
   503  const 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
   529  func (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
   577  func (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.
   591  func (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.
   599  type 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.
   619  //
   620  // API parameter values that are decorated as "sensitive" in the API will not
   621  // be included in the string output. The member name will be present, but the
   622  // value will be replaced with "sensitive".
   623  func (s ArrayValue) String() string {
   624  	return awsutil.Prettify(s)
   625  }
   626  
   627  // GoString returns the string representation.
   628  //
   629  // API parameter values that are decorated as "sensitive" in the API will not
   630  // be included in the string output. The member name will be present, but the
   631  // value will be replaced with "sensitive".
   632  func (s ArrayValue) GoString() string {
   633  	return s.String()
   634  }
   635  
   636  // SetArrayValues sets the ArrayValues field's value.
   637  func (s *ArrayValue) SetArrayValues(v []*ArrayValue) *ArrayValue {
   638  	s.ArrayValues = v
   639  	return s
   640  }
   641  
   642  // SetBooleanValues sets the BooleanValues field's value.
   643  func (s *ArrayValue) SetBooleanValues(v []*bool) *ArrayValue {
   644  	s.BooleanValues = v
   645  	return s
   646  }
   647  
   648  // SetDoubleValues sets the DoubleValues field's value.
   649  func (s *ArrayValue) SetDoubleValues(v []*float64) *ArrayValue {
   650  	s.DoubleValues = v
   651  	return s
   652  }
   653  
   654  // SetLongValues sets the LongValues field's value.
   655  func (s *ArrayValue) SetLongValues(v []*int64) *ArrayValue {
   656  	s.LongValues = v
   657  	return s
   658  }
   659  
   660  // SetStringValues sets the StringValues field's value.
   661  func (s *ArrayValue) SetStringValues(v []*string) *ArrayValue {
   662  	s.StringValues = v
   663  	return s
   664  }
   665  
   666  // There is an error in the call or in a SQL statement.
   667  type BadRequestException struct {
   668  	_            struct{}                  `type:"structure"`
   669  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
   670  
   671  	// The error message returned by this BadRequestException error.
   672  	Message_ *string `locationName:"message" type:"string"`
   673  }
   674  
   675  // String returns the string representation.
   676  //
   677  // API parameter values that are decorated as "sensitive" in the API will not
   678  // be included in the string output. The member name will be present, but the
   679  // value will be replaced with "sensitive".
   680  func (s BadRequestException) String() string {
   681  	return awsutil.Prettify(s)
   682  }
   683  
   684  // GoString returns the string representation.
   685  //
   686  // API parameter values that are decorated as "sensitive" in the API will not
   687  // be included in the string output. The member name will be present, but the
   688  // value will be replaced with "sensitive".
   689  func (s BadRequestException) GoString() string {
   690  	return s.String()
   691  }
   692  
   693  func newErrorBadRequestException(v protocol.ResponseMetadata) error {
   694  	return &BadRequestException{
   695  		RespMetadata: v,
   696  	}
   697  }
   698  
   699  // Code returns the exception type name.
   700  func (s *BadRequestException) Code() string {
   701  	return "BadRequestException"
   702  }
   703  
   704  // Message returns the exception's message.
   705  func (s *BadRequestException) Message() string {
   706  	if s.Message_ != nil {
   707  		return *s.Message_
   708  	}
   709  	return ""
   710  }
   711  
   712  // OrigErr always returns nil, satisfies awserr.Error interface.
   713  func (s *BadRequestException) OrigErr() error {
   714  	return nil
   715  }
   716  
   717  func (s *BadRequestException) Error() string {
   718  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
   719  }
   720  
   721  // Status code returns the HTTP status code for the request's response error.
   722  func (s *BadRequestException) StatusCode() int {
   723  	return s.RespMetadata.StatusCode
   724  }
   725  
   726  // RequestID returns the service's response RequestID for request.
   727  func (s *BadRequestException) RequestID() string {
   728  	return s.RespMetadata.RequestID
   729  }
   730  
   731  // The request parameters represent the input of a SQL statement over an array
   732  // of data.
   733  type BatchExecuteStatementInput struct {
   734  	_ struct{} `type:"structure"`
   735  
   736  	// The name of the database.
   737  	Database *string `locationName:"database" type:"string"`
   738  
   739  	// The parameter set for the batch operation.
   740  	//
   741  	// The SQL statement is executed as many times as the number of parameter sets
   742  	// provided. To execute a SQL statement with no parameters, use one of the following
   743  	// options:
   744  	//
   745  	//    * Specify one or more empty parameter sets.
   746  	//
   747  	//    * Use the ExecuteStatement operation instead of the BatchExecuteStatement
   748  	//    operation.
   749  	//
   750  	// Array parameters are not supported.
   751  	ParameterSets [][]*SqlParameter `locationName:"parameterSets" type:"list"`
   752  
   753  	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
   754  	//
   755  	// ResourceArn is a required field
   756  	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
   757  
   758  	// The name of the database schema.
   759  	Schema *string `locationName:"schema" type:"string"`
   760  
   761  	// The name or ARN of the secret that enables access to the DB cluster.
   762  	//
   763  	// SecretArn is a required field
   764  	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
   765  
   766  	// The SQL statement to run.
   767  	//
   768  	// Sql is a required field
   769  	Sql *string `locationName:"sql" type:"string" required:"true"`
   770  
   771  	// The identifier of a transaction that was started by using the BeginTransaction
   772  	// operation. Specify the transaction ID of the transaction that you want to
   773  	// include the SQL statement in.
   774  	//
   775  	// If the SQL statement is not part of a transaction, don't set this parameter.
   776  	TransactionId *string `locationName:"transactionId" type:"string"`
   777  }
   778  
   779  // String returns the string representation.
   780  //
   781  // API parameter values that are decorated as "sensitive" in the API will not
   782  // be included in the string output. The member name will be present, but the
   783  // value will be replaced with "sensitive".
   784  func (s BatchExecuteStatementInput) String() string {
   785  	return awsutil.Prettify(s)
   786  }
   787  
   788  // GoString returns the string representation.
   789  //
   790  // API parameter values that are decorated as "sensitive" in the API will not
   791  // be included in the string output. The member name will be present, but the
   792  // value will be replaced with "sensitive".
   793  func (s BatchExecuteStatementInput) GoString() string {
   794  	return s.String()
   795  }
   796  
   797  // Validate inspects the fields of the type to determine if they are valid.
   798  func (s *BatchExecuteStatementInput) Validate() error {
   799  	invalidParams := request.ErrInvalidParams{Context: "BatchExecuteStatementInput"}
   800  	if s.ResourceArn == nil {
   801  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
   802  	}
   803  	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
   804  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
   805  	}
   806  	if s.SecretArn == nil {
   807  		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
   808  	}
   809  	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
   810  		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
   811  	}
   812  	if s.Sql == nil {
   813  		invalidParams.Add(request.NewErrParamRequired("Sql"))
   814  	}
   815  
   816  	if invalidParams.Len() > 0 {
   817  		return invalidParams
   818  	}
   819  	return nil
   820  }
   821  
   822  // SetDatabase sets the Database field's value.
   823  func (s *BatchExecuteStatementInput) SetDatabase(v string) *BatchExecuteStatementInput {
   824  	s.Database = &v
   825  	return s
   826  }
   827  
   828  // SetParameterSets sets the ParameterSets field's value.
   829  func (s *BatchExecuteStatementInput) SetParameterSets(v [][]*SqlParameter) *BatchExecuteStatementInput {
   830  	s.ParameterSets = v
   831  	return s
   832  }
   833  
   834  // SetResourceArn sets the ResourceArn field's value.
   835  func (s *BatchExecuteStatementInput) SetResourceArn(v string) *BatchExecuteStatementInput {
   836  	s.ResourceArn = &v
   837  	return s
   838  }
   839  
   840  // SetSchema sets the Schema field's value.
   841  func (s *BatchExecuteStatementInput) SetSchema(v string) *BatchExecuteStatementInput {
   842  	s.Schema = &v
   843  	return s
   844  }
   845  
   846  // SetSecretArn sets the SecretArn field's value.
   847  func (s *BatchExecuteStatementInput) SetSecretArn(v string) *BatchExecuteStatementInput {
   848  	s.SecretArn = &v
   849  	return s
   850  }
   851  
   852  // SetSql sets the Sql field's value.
   853  func (s *BatchExecuteStatementInput) SetSql(v string) *BatchExecuteStatementInput {
   854  	s.Sql = &v
   855  	return s
   856  }
   857  
   858  // SetTransactionId sets the TransactionId field's value.
   859  func (s *BatchExecuteStatementInput) SetTransactionId(v string) *BatchExecuteStatementInput {
   860  	s.TransactionId = &v
   861  	return s
   862  }
   863  
   864  // The response elements represent the output of a SQL statement over an array
   865  // of data.
   866  type BatchExecuteStatementOutput struct {
   867  	_ struct{} `type:"structure"`
   868  
   869  	// The execution results of each batch entry.
   870  	UpdateResults []*UpdateResult `locationName:"updateResults" type:"list"`
   871  }
   872  
   873  // String returns the string representation.
   874  //
   875  // API parameter values that are decorated as "sensitive" in the API will not
   876  // be included in the string output. The member name will be present, but the
   877  // value will be replaced with "sensitive".
   878  func (s BatchExecuteStatementOutput) String() string {
   879  	return awsutil.Prettify(s)
   880  }
   881  
   882  // GoString returns the string representation.
   883  //
   884  // API parameter values that are decorated as "sensitive" in the API will not
   885  // be included in the string output. The member name will be present, but the
   886  // value will be replaced with "sensitive".
   887  func (s BatchExecuteStatementOutput) GoString() string {
   888  	return s.String()
   889  }
   890  
   891  // SetUpdateResults sets the UpdateResults field's value.
   892  func (s *BatchExecuteStatementOutput) SetUpdateResults(v []*UpdateResult) *BatchExecuteStatementOutput {
   893  	s.UpdateResults = v
   894  	return s
   895  }
   896  
   897  // The request parameters represent the input of a request to start a SQL transaction.
   898  type BeginTransactionInput struct {
   899  	_ struct{} `type:"structure"`
   900  
   901  	// The name of the database.
   902  	Database *string `locationName:"database" type:"string"`
   903  
   904  	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
   905  	//
   906  	// ResourceArn is a required field
   907  	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
   908  
   909  	// The name of the database schema.
   910  	Schema *string `locationName:"schema" type:"string"`
   911  
   912  	// The name or ARN of the secret that enables access to the DB cluster.
   913  	//
   914  	// SecretArn is a required field
   915  	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
   916  }
   917  
   918  // String returns the string representation.
   919  //
   920  // API parameter values that are decorated as "sensitive" in the API will not
   921  // be included in the string output. The member name will be present, but the
   922  // value will be replaced with "sensitive".
   923  func (s BeginTransactionInput) String() string {
   924  	return awsutil.Prettify(s)
   925  }
   926  
   927  // GoString returns the string representation.
   928  //
   929  // API parameter values that are decorated as "sensitive" in the API will not
   930  // be included in the string output. The member name will be present, but the
   931  // value will be replaced with "sensitive".
   932  func (s BeginTransactionInput) GoString() string {
   933  	return s.String()
   934  }
   935  
   936  // Validate inspects the fields of the type to determine if they are valid.
   937  func (s *BeginTransactionInput) Validate() error {
   938  	invalidParams := request.ErrInvalidParams{Context: "BeginTransactionInput"}
   939  	if s.ResourceArn == nil {
   940  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
   941  	}
   942  	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
   943  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
   944  	}
   945  	if s.SecretArn == nil {
   946  		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
   947  	}
   948  	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
   949  		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
   950  	}
   951  
   952  	if invalidParams.Len() > 0 {
   953  		return invalidParams
   954  	}
   955  	return nil
   956  }
   957  
   958  // SetDatabase sets the Database field's value.
   959  func (s *BeginTransactionInput) SetDatabase(v string) *BeginTransactionInput {
   960  	s.Database = &v
   961  	return s
   962  }
   963  
   964  // SetResourceArn sets the ResourceArn field's value.
   965  func (s *BeginTransactionInput) SetResourceArn(v string) *BeginTransactionInput {
   966  	s.ResourceArn = &v
   967  	return s
   968  }
   969  
   970  // SetSchema sets the Schema field's value.
   971  func (s *BeginTransactionInput) SetSchema(v string) *BeginTransactionInput {
   972  	s.Schema = &v
   973  	return s
   974  }
   975  
   976  // SetSecretArn sets the SecretArn field's value.
   977  func (s *BeginTransactionInput) SetSecretArn(v string) *BeginTransactionInput {
   978  	s.SecretArn = &v
   979  	return s
   980  }
   981  
   982  // The response elements represent the output of a request to start a SQL transaction.
   983  type BeginTransactionOutput struct {
   984  	_ struct{} `type:"structure"`
   985  
   986  	// The transaction ID of the transaction started by the call.
   987  	TransactionId *string `locationName:"transactionId" type:"string"`
   988  }
   989  
   990  // String returns the string representation.
   991  //
   992  // API parameter values that are decorated as "sensitive" in the API will not
   993  // be included in the string output. The member name will be present, but the
   994  // value will be replaced with "sensitive".
   995  func (s BeginTransactionOutput) String() string {
   996  	return awsutil.Prettify(s)
   997  }
   998  
   999  // GoString returns the string representation.
  1000  //
  1001  // API parameter values that are decorated as "sensitive" in the API will not
  1002  // be included in the string output. The member name will be present, but the
  1003  // value will be replaced with "sensitive".
  1004  func (s BeginTransactionOutput) GoString() string {
  1005  	return s.String()
  1006  }
  1007  
  1008  // SetTransactionId sets the TransactionId field's value.
  1009  func (s *BeginTransactionOutput) SetTransactionId(v string) *BeginTransactionOutput {
  1010  	s.TransactionId = &v
  1011  	return s
  1012  }
  1013  
  1014  // Contains the metadata for a column.
  1015  type ColumnMetadata struct {
  1016  	_ struct{} `type:"structure"`
  1017  
  1018  	// The type of the column.
  1019  	ArrayBaseColumnType *int64 `locationName:"arrayBaseColumnType" type:"integer"`
  1020  
  1021  	// A value that indicates whether the column increments automatically.
  1022  	IsAutoIncrement *bool `locationName:"isAutoIncrement" type:"boolean"`
  1023  
  1024  	// A value that indicates whether the column is case-sensitive.
  1025  	IsCaseSensitive *bool `locationName:"isCaseSensitive" type:"boolean"`
  1026  
  1027  	// A value that indicates whether the column contains currency values.
  1028  	IsCurrency *bool `locationName:"isCurrency" type:"boolean"`
  1029  
  1030  	// A value that indicates whether an integer column is signed.
  1031  	IsSigned *bool `locationName:"isSigned" type:"boolean"`
  1032  
  1033  	// The label for the column.
  1034  	Label *string `locationName:"label" type:"string"`
  1035  
  1036  	// The name of the column.
  1037  	Name *string `locationName:"name" type:"string"`
  1038  
  1039  	// A value that indicates whether the column is nullable.
  1040  	Nullable *int64 `locationName:"nullable" type:"integer"`
  1041  
  1042  	// The precision value of a decimal number column.
  1043  	Precision *int64 `locationName:"precision" type:"integer"`
  1044  
  1045  	// The scale value of a decimal number column.
  1046  	Scale *int64 `locationName:"scale" type:"integer"`
  1047  
  1048  	// The name of the schema that owns the table that includes the column.
  1049  	SchemaName *string `locationName:"schemaName" type:"string"`
  1050  
  1051  	// The name of the table that includes the column.
  1052  	TableName *string `locationName:"tableName" type:"string"`
  1053  
  1054  	// The type of the column.
  1055  	Type *int64 `locationName:"type" type:"integer"`
  1056  
  1057  	// The database-specific data type of the column.
  1058  	TypeName *string `locationName:"typeName" type:"string"`
  1059  }
  1060  
  1061  // String returns the string representation.
  1062  //
  1063  // API parameter values that are decorated as "sensitive" in the API will not
  1064  // be included in the string output. The member name will be present, but the
  1065  // value will be replaced with "sensitive".
  1066  func (s ColumnMetadata) String() string {
  1067  	return awsutil.Prettify(s)
  1068  }
  1069  
  1070  // GoString returns the string representation.
  1071  //
  1072  // API parameter values that are decorated as "sensitive" in the API will not
  1073  // be included in the string output. The member name will be present, but the
  1074  // value will be replaced with "sensitive".
  1075  func (s ColumnMetadata) GoString() string {
  1076  	return s.String()
  1077  }
  1078  
  1079  // SetArrayBaseColumnType sets the ArrayBaseColumnType field's value.
  1080  func (s *ColumnMetadata) SetArrayBaseColumnType(v int64) *ColumnMetadata {
  1081  	s.ArrayBaseColumnType = &v
  1082  	return s
  1083  }
  1084  
  1085  // SetIsAutoIncrement sets the IsAutoIncrement field's value.
  1086  func (s *ColumnMetadata) SetIsAutoIncrement(v bool) *ColumnMetadata {
  1087  	s.IsAutoIncrement = &v
  1088  	return s
  1089  }
  1090  
  1091  // SetIsCaseSensitive sets the IsCaseSensitive field's value.
  1092  func (s *ColumnMetadata) SetIsCaseSensitive(v bool) *ColumnMetadata {
  1093  	s.IsCaseSensitive = &v
  1094  	return s
  1095  }
  1096  
  1097  // SetIsCurrency sets the IsCurrency field's value.
  1098  func (s *ColumnMetadata) SetIsCurrency(v bool) *ColumnMetadata {
  1099  	s.IsCurrency = &v
  1100  	return s
  1101  }
  1102  
  1103  // SetIsSigned sets the IsSigned field's value.
  1104  func (s *ColumnMetadata) SetIsSigned(v bool) *ColumnMetadata {
  1105  	s.IsSigned = &v
  1106  	return s
  1107  }
  1108  
  1109  // SetLabel sets the Label field's value.
  1110  func (s *ColumnMetadata) SetLabel(v string) *ColumnMetadata {
  1111  	s.Label = &v
  1112  	return s
  1113  }
  1114  
  1115  // SetName sets the Name field's value.
  1116  func (s *ColumnMetadata) SetName(v string) *ColumnMetadata {
  1117  	s.Name = &v
  1118  	return s
  1119  }
  1120  
  1121  // SetNullable sets the Nullable field's value.
  1122  func (s *ColumnMetadata) SetNullable(v int64) *ColumnMetadata {
  1123  	s.Nullable = &v
  1124  	return s
  1125  }
  1126  
  1127  // SetPrecision sets the Precision field's value.
  1128  func (s *ColumnMetadata) SetPrecision(v int64) *ColumnMetadata {
  1129  	s.Precision = &v
  1130  	return s
  1131  }
  1132  
  1133  // SetScale sets the Scale field's value.
  1134  func (s *ColumnMetadata) SetScale(v int64) *ColumnMetadata {
  1135  	s.Scale = &v
  1136  	return s
  1137  }
  1138  
  1139  // SetSchemaName sets the SchemaName field's value.
  1140  func (s *ColumnMetadata) SetSchemaName(v string) *ColumnMetadata {
  1141  	s.SchemaName = &v
  1142  	return s
  1143  }
  1144  
  1145  // SetTableName sets the TableName field's value.
  1146  func (s *ColumnMetadata) SetTableName(v string) *ColumnMetadata {
  1147  	s.TableName = &v
  1148  	return s
  1149  }
  1150  
  1151  // SetType sets the Type field's value.
  1152  func (s *ColumnMetadata) SetType(v int64) *ColumnMetadata {
  1153  	s.Type = &v
  1154  	return s
  1155  }
  1156  
  1157  // SetTypeName sets the TypeName field's value.
  1158  func (s *ColumnMetadata) SetTypeName(v string) *ColumnMetadata {
  1159  	s.TypeName = &v
  1160  	return s
  1161  }
  1162  
  1163  // The request parameters represent the input of a commit transaction request.
  1164  type CommitTransactionInput struct {
  1165  	_ struct{} `type:"structure"`
  1166  
  1167  	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
  1168  	//
  1169  	// ResourceArn is a required field
  1170  	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
  1171  
  1172  	// The name or ARN of the secret that enables access to the DB cluster.
  1173  	//
  1174  	// SecretArn is a required field
  1175  	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
  1176  
  1177  	// The identifier of the transaction to end and commit.
  1178  	//
  1179  	// TransactionId is a required field
  1180  	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
  1181  }
  1182  
  1183  // String returns the string representation.
  1184  //
  1185  // API parameter values that are decorated as "sensitive" in the API will not
  1186  // be included in the string output. The member name will be present, but the
  1187  // value will be replaced with "sensitive".
  1188  func (s CommitTransactionInput) String() string {
  1189  	return awsutil.Prettify(s)
  1190  }
  1191  
  1192  // GoString returns the string representation.
  1193  //
  1194  // API parameter values that are decorated as "sensitive" in the API will not
  1195  // be included in the string output. The member name will be present, but the
  1196  // value will be replaced with "sensitive".
  1197  func (s CommitTransactionInput) GoString() string {
  1198  	return s.String()
  1199  }
  1200  
  1201  // Validate inspects the fields of the type to determine if they are valid.
  1202  func (s *CommitTransactionInput) Validate() error {
  1203  	invalidParams := request.ErrInvalidParams{Context: "CommitTransactionInput"}
  1204  	if s.ResourceArn == nil {
  1205  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1206  	}
  1207  	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
  1208  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
  1209  	}
  1210  	if s.SecretArn == nil {
  1211  		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
  1212  	}
  1213  	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
  1214  		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
  1215  	}
  1216  	if s.TransactionId == nil {
  1217  		invalidParams.Add(request.NewErrParamRequired("TransactionId"))
  1218  	}
  1219  
  1220  	if invalidParams.Len() > 0 {
  1221  		return invalidParams
  1222  	}
  1223  	return nil
  1224  }
  1225  
  1226  // SetResourceArn sets the ResourceArn field's value.
  1227  func (s *CommitTransactionInput) SetResourceArn(v string) *CommitTransactionInput {
  1228  	s.ResourceArn = &v
  1229  	return s
  1230  }
  1231  
  1232  // SetSecretArn sets the SecretArn field's value.
  1233  func (s *CommitTransactionInput) SetSecretArn(v string) *CommitTransactionInput {
  1234  	s.SecretArn = &v
  1235  	return s
  1236  }
  1237  
  1238  // SetTransactionId sets the TransactionId field's value.
  1239  func (s *CommitTransactionInput) SetTransactionId(v string) *CommitTransactionInput {
  1240  	s.TransactionId = &v
  1241  	return s
  1242  }
  1243  
  1244  // The response elements represent the output of a commit transaction request.
  1245  type CommitTransactionOutput struct {
  1246  	_ struct{} `type:"structure"`
  1247  
  1248  	// The status of the commit operation.
  1249  	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
  1250  }
  1251  
  1252  // String returns the string representation.
  1253  //
  1254  // API parameter values that are decorated as "sensitive" in the API will not
  1255  // be included in the string output. The member name will be present, but the
  1256  // value will be replaced with "sensitive".
  1257  func (s CommitTransactionOutput) String() string {
  1258  	return awsutil.Prettify(s)
  1259  }
  1260  
  1261  // GoString returns the string representation.
  1262  //
  1263  // API parameter values that are decorated as "sensitive" in the API will not
  1264  // be included in the string output. The member name will be present, but the
  1265  // value will be replaced with "sensitive".
  1266  func (s CommitTransactionOutput) GoString() string {
  1267  	return s.String()
  1268  }
  1269  
  1270  // SetTransactionStatus sets the TransactionStatus field's value.
  1271  func (s *CommitTransactionOutput) SetTransactionStatus(v string) *CommitTransactionOutput {
  1272  	s.TransactionStatus = &v
  1273  	return s
  1274  }
  1275  
  1276  // The request parameters represent the input of a request to run one or more
  1277  // SQL statements.
  1278  type ExecuteSqlInput struct {
  1279  	_ struct{} `type:"structure"`
  1280  
  1281  	// The Amazon Resource Name (ARN) of the secret that enables access to the DB
  1282  	// cluster.
  1283  	//
  1284  	// AwsSecretStoreArn is a required field
  1285  	AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" min:"11" type:"string" required:"true"`
  1286  
  1287  	// The name of the database.
  1288  	Database *string `locationName:"database" type:"string"`
  1289  
  1290  	// The ARN of the Aurora Serverless DB cluster.
  1291  	//
  1292  	// DbClusterOrInstanceArn is a required field
  1293  	DbClusterOrInstanceArn *string `locationName:"dbClusterOrInstanceArn" min:"11" type:"string" required:"true"`
  1294  
  1295  	// The name of the database schema.
  1296  	Schema *string `locationName:"schema" type:"string"`
  1297  
  1298  	// One or more SQL statements to run on the DB cluster.
  1299  	//
  1300  	// You can separate SQL statements from each other with a semicolon (;). Any
  1301  	// valid SQL statement is permitted, including data definition, data manipulation,
  1302  	// and commit statements.
  1303  	//
  1304  	// SqlStatements is a required field
  1305  	SqlStatements *string `locationName:"sqlStatements" type:"string" required:"true"`
  1306  }
  1307  
  1308  // String returns the string representation.
  1309  //
  1310  // API parameter values that are decorated as "sensitive" in the API will not
  1311  // be included in the string output. The member name will be present, but the
  1312  // value will be replaced with "sensitive".
  1313  func (s ExecuteSqlInput) String() string {
  1314  	return awsutil.Prettify(s)
  1315  }
  1316  
  1317  // GoString returns the string representation.
  1318  //
  1319  // API parameter values that are decorated as "sensitive" in the API will not
  1320  // be included in the string output. The member name will be present, but the
  1321  // value will be replaced with "sensitive".
  1322  func (s ExecuteSqlInput) GoString() string {
  1323  	return s.String()
  1324  }
  1325  
  1326  // Validate inspects the fields of the type to determine if they are valid.
  1327  func (s *ExecuteSqlInput) Validate() error {
  1328  	invalidParams := request.ErrInvalidParams{Context: "ExecuteSqlInput"}
  1329  	if s.AwsSecretStoreArn == nil {
  1330  		invalidParams.Add(request.NewErrParamRequired("AwsSecretStoreArn"))
  1331  	}
  1332  	if s.AwsSecretStoreArn != nil && len(*s.AwsSecretStoreArn) < 11 {
  1333  		invalidParams.Add(request.NewErrParamMinLen("AwsSecretStoreArn", 11))
  1334  	}
  1335  	if s.DbClusterOrInstanceArn == nil {
  1336  		invalidParams.Add(request.NewErrParamRequired("DbClusterOrInstanceArn"))
  1337  	}
  1338  	if s.DbClusterOrInstanceArn != nil && len(*s.DbClusterOrInstanceArn) < 11 {
  1339  		invalidParams.Add(request.NewErrParamMinLen("DbClusterOrInstanceArn", 11))
  1340  	}
  1341  	if s.SqlStatements == nil {
  1342  		invalidParams.Add(request.NewErrParamRequired("SqlStatements"))
  1343  	}
  1344  
  1345  	if invalidParams.Len() > 0 {
  1346  		return invalidParams
  1347  	}
  1348  	return nil
  1349  }
  1350  
  1351  // SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value.
  1352  func (s *ExecuteSqlInput) SetAwsSecretStoreArn(v string) *ExecuteSqlInput {
  1353  	s.AwsSecretStoreArn = &v
  1354  	return s
  1355  }
  1356  
  1357  // SetDatabase sets the Database field's value.
  1358  func (s *ExecuteSqlInput) SetDatabase(v string) *ExecuteSqlInput {
  1359  	s.Database = &v
  1360  	return s
  1361  }
  1362  
  1363  // SetDbClusterOrInstanceArn sets the DbClusterOrInstanceArn field's value.
  1364  func (s *ExecuteSqlInput) SetDbClusterOrInstanceArn(v string) *ExecuteSqlInput {
  1365  	s.DbClusterOrInstanceArn = &v
  1366  	return s
  1367  }
  1368  
  1369  // SetSchema sets the Schema field's value.
  1370  func (s *ExecuteSqlInput) SetSchema(v string) *ExecuteSqlInput {
  1371  	s.Schema = &v
  1372  	return s
  1373  }
  1374  
  1375  // SetSqlStatements sets the SqlStatements field's value.
  1376  func (s *ExecuteSqlInput) SetSqlStatements(v string) *ExecuteSqlInput {
  1377  	s.SqlStatements = &v
  1378  	return s
  1379  }
  1380  
  1381  // The response elements represent the output of a request to run one or more
  1382  // SQL statements.
  1383  type ExecuteSqlOutput struct {
  1384  	_ struct{} `type:"structure"`
  1385  
  1386  	// The results of the SQL statement or statements.
  1387  	SqlStatementResults []*SqlStatementResult `locationName:"sqlStatementResults" type:"list"`
  1388  }
  1389  
  1390  // String returns the string representation.
  1391  //
  1392  // API parameter values that are decorated as "sensitive" in the API will not
  1393  // be included in the string output. The member name will be present, but the
  1394  // value will be replaced with "sensitive".
  1395  func (s ExecuteSqlOutput) String() string {
  1396  	return awsutil.Prettify(s)
  1397  }
  1398  
  1399  // GoString returns the string representation.
  1400  //
  1401  // API parameter values that are decorated as "sensitive" in the API will not
  1402  // be included in the string output. The member name will be present, but the
  1403  // value will be replaced with "sensitive".
  1404  func (s ExecuteSqlOutput) GoString() string {
  1405  	return s.String()
  1406  }
  1407  
  1408  // SetSqlStatementResults sets the SqlStatementResults field's value.
  1409  func (s *ExecuteSqlOutput) SetSqlStatementResults(v []*SqlStatementResult) *ExecuteSqlOutput {
  1410  	s.SqlStatementResults = v
  1411  	return s
  1412  }
  1413  
  1414  // The request parameters represent the input of a request to run a SQL statement
  1415  // against a database.
  1416  type ExecuteStatementInput struct {
  1417  	_ struct{} `type:"structure"`
  1418  
  1419  	// A value that indicates whether to continue running the statement after the
  1420  	// call times out. By default, the statement stops running when the call times
  1421  	// out.
  1422  	//
  1423  	// For DDL statements, we recommend continuing to run the statement after the
  1424  	// call times out. When a DDL statement terminates before it is finished running,
  1425  	// it can result in errors and possibly corrupted data structures.
  1426  	ContinueAfterTimeout *bool `locationName:"continueAfterTimeout" type:"boolean"`
  1427  
  1428  	// The name of the database.
  1429  	Database *string `locationName:"database" type:"string"`
  1430  
  1431  	// A value that indicates whether to include metadata in the results.
  1432  	IncludeResultMetadata *bool `locationName:"includeResultMetadata" type:"boolean"`
  1433  
  1434  	// The parameters for the SQL statement.
  1435  	//
  1436  	// Array parameters are not supported.
  1437  	Parameters []*SqlParameter `locationName:"parameters" type:"list"`
  1438  
  1439  	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
  1440  	//
  1441  	// ResourceArn is a required field
  1442  	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
  1443  
  1444  	// Options that control how the result set is returned.
  1445  	ResultSetOptions *ResultSetOptions `locationName:"resultSetOptions" type:"structure"`
  1446  
  1447  	// The name of the database schema.
  1448  	//
  1449  	// Currently, the schema parameter isn't supported.
  1450  	Schema *string `locationName:"schema" type:"string"`
  1451  
  1452  	// The name or ARN of the secret that enables access to the DB cluster.
  1453  	//
  1454  	// SecretArn is a required field
  1455  	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
  1456  
  1457  	// The SQL statement to run.
  1458  	//
  1459  	// Sql is a required field
  1460  	Sql *string `locationName:"sql" type:"string" required:"true"`
  1461  
  1462  	// The identifier of a transaction that was started by using the BeginTransaction
  1463  	// operation. Specify the transaction ID of the transaction that you want to
  1464  	// include the SQL statement in.
  1465  	//
  1466  	// If the SQL statement is not part of a transaction, don't set this parameter.
  1467  	TransactionId *string `locationName:"transactionId" type:"string"`
  1468  }
  1469  
  1470  // String returns the string representation.
  1471  //
  1472  // API parameter values that are decorated as "sensitive" in the API will not
  1473  // be included in the string output. The member name will be present, but the
  1474  // value will be replaced with "sensitive".
  1475  func (s ExecuteStatementInput) String() string {
  1476  	return awsutil.Prettify(s)
  1477  }
  1478  
  1479  // GoString returns the string representation.
  1480  //
  1481  // API parameter values that are decorated as "sensitive" in the API will not
  1482  // be included in the string output. The member name will be present, but the
  1483  // value will be replaced with "sensitive".
  1484  func (s ExecuteStatementInput) GoString() string {
  1485  	return s.String()
  1486  }
  1487  
  1488  // Validate inspects the fields of the type to determine if they are valid.
  1489  func (s *ExecuteStatementInput) Validate() error {
  1490  	invalidParams := request.ErrInvalidParams{Context: "ExecuteStatementInput"}
  1491  	if s.ResourceArn == nil {
  1492  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1493  	}
  1494  	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
  1495  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
  1496  	}
  1497  	if s.SecretArn == nil {
  1498  		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
  1499  	}
  1500  	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
  1501  		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
  1502  	}
  1503  	if s.Sql == nil {
  1504  		invalidParams.Add(request.NewErrParamRequired("Sql"))
  1505  	}
  1506  
  1507  	if invalidParams.Len() > 0 {
  1508  		return invalidParams
  1509  	}
  1510  	return nil
  1511  }
  1512  
  1513  // SetContinueAfterTimeout sets the ContinueAfterTimeout field's value.
  1514  func (s *ExecuteStatementInput) SetContinueAfterTimeout(v bool) *ExecuteStatementInput {
  1515  	s.ContinueAfterTimeout = &v
  1516  	return s
  1517  }
  1518  
  1519  // SetDatabase sets the Database field's value.
  1520  func (s *ExecuteStatementInput) SetDatabase(v string) *ExecuteStatementInput {
  1521  	s.Database = &v
  1522  	return s
  1523  }
  1524  
  1525  // SetIncludeResultMetadata sets the IncludeResultMetadata field's value.
  1526  func (s *ExecuteStatementInput) SetIncludeResultMetadata(v bool) *ExecuteStatementInput {
  1527  	s.IncludeResultMetadata = &v
  1528  	return s
  1529  }
  1530  
  1531  // SetParameters sets the Parameters field's value.
  1532  func (s *ExecuteStatementInput) SetParameters(v []*SqlParameter) *ExecuteStatementInput {
  1533  	s.Parameters = v
  1534  	return s
  1535  }
  1536  
  1537  // SetResourceArn sets the ResourceArn field's value.
  1538  func (s *ExecuteStatementInput) SetResourceArn(v string) *ExecuteStatementInput {
  1539  	s.ResourceArn = &v
  1540  	return s
  1541  }
  1542  
  1543  // SetResultSetOptions sets the ResultSetOptions field's value.
  1544  func (s *ExecuteStatementInput) SetResultSetOptions(v *ResultSetOptions) *ExecuteStatementInput {
  1545  	s.ResultSetOptions = v
  1546  	return s
  1547  }
  1548  
  1549  // SetSchema sets the Schema field's value.
  1550  func (s *ExecuteStatementInput) SetSchema(v string) *ExecuteStatementInput {
  1551  	s.Schema = &v
  1552  	return s
  1553  }
  1554  
  1555  // SetSecretArn sets the SecretArn field's value.
  1556  func (s *ExecuteStatementInput) SetSecretArn(v string) *ExecuteStatementInput {
  1557  	s.SecretArn = &v
  1558  	return s
  1559  }
  1560  
  1561  // SetSql sets the Sql field's value.
  1562  func (s *ExecuteStatementInput) SetSql(v string) *ExecuteStatementInput {
  1563  	s.Sql = &v
  1564  	return s
  1565  }
  1566  
  1567  // SetTransactionId sets the TransactionId field's value.
  1568  func (s *ExecuteStatementInput) SetTransactionId(v string) *ExecuteStatementInput {
  1569  	s.TransactionId = &v
  1570  	return s
  1571  }
  1572  
  1573  // The response elements represent the output of a request to run a SQL statement
  1574  // against a database.
  1575  type ExecuteStatementOutput struct {
  1576  	_ struct{} `type:"structure"`
  1577  
  1578  	// Metadata for the columns included in the results.
  1579  	ColumnMetadata []*ColumnMetadata `locationName:"columnMetadata" type:"list"`
  1580  
  1581  	// Values for fields generated during the request.
  1582  	//
  1583  	//    <note> <p>The <code>generatedFields</code> data isn't supported by Aurora
  1584  	//    PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code>
  1585  	//    clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
  1586  	//    Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
  1587  	GeneratedFields []*Field `locationName:"generatedFields" type:"list"`
  1588  
  1589  	// The number of records updated by the request.
  1590  	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`
  1591  
  1592  	// The records returned by the SQL statement.
  1593  	Records [][]*Field `locationName:"records" type:"list"`
  1594  }
  1595  
  1596  // String returns the string representation.
  1597  //
  1598  // API parameter values that are decorated as "sensitive" in the API will not
  1599  // be included in the string output. The member name will be present, but the
  1600  // value will be replaced with "sensitive".
  1601  func (s ExecuteStatementOutput) String() string {
  1602  	return awsutil.Prettify(s)
  1603  }
  1604  
  1605  // GoString returns the string representation.
  1606  //
  1607  // API parameter values that are decorated as "sensitive" in the API will not
  1608  // be included in the string output. The member name will be present, but the
  1609  // value will be replaced with "sensitive".
  1610  func (s ExecuteStatementOutput) GoString() string {
  1611  	return s.String()
  1612  }
  1613  
  1614  // SetColumnMetadata sets the ColumnMetadata field's value.
  1615  func (s *ExecuteStatementOutput) SetColumnMetadata(v []*ColumnMetadata) *ExecuteStatementOutput {
  1616  	s.ColumnMetadata = v
  1617  	return s
  1618  }
  1619  
  1620  // SetGeneratedFields sets the GeneratedFields field's value.
  1621  func (s *ExecuteStatementOutput) SetGeneratedFields(v []*Field) *ExecuteStatementOutput {
  1622  	s.GeneratedFields = v
  1623  	return s
  1624  }
  1625  
  1626  // SetNumberOfRecordsUpdated sets the NumberOfRecordsUpdated field's value.
  1627  func (s *ExecuteStatementOutput) SetNumberOfRecordsUpdated(v int64) *ExecuteStatementOutput {
  1628  	s.NumberOfRecordsUpdated = &v
  1629  	return s
  1630  }
  1631  
  1632  // SetRecords sets the Records field's value.
  1633  func (s *ExecuteStatementOutput) SetRecords(v [][]*Field) *ExecuteStatementOutput {
  1634  	s.Records = v
  1635  	return s
  1636  }
  1637  
  1638  // Contains a value.
  1639  type Field struct {
  1640  	_ struct{} `type:"structure"`
  1641  
  1642  	// An array of values.
  1643  	ArrayValue *ArrayValue `locationName:"arrayValue" type:"structure"`
  1644  
  1645  	// A value of BLOB data type.
  1646  	// BlobValue is automatically base64 encoded/decoded by the SDK.
  1647  	BlobValue []byte `locationName:"blobValue" type:"blob"`
  1648  
  1649  	// A value of Boolean data type.
  1650  	BooleanValue *bool `locationName:"booleanValue" type:"boolean"`
  1651  
  1652  	// A value of double data type.
  1653  	DoubleValue *float64 `locationName:"doubleValue" type:"double"`
  1654  
  1655  	// A NULL value.
  1656  	IsNull *bool `locationName:"isNull" type:"boolean"`
  1657  
  1658  	// A value of long data type.
  1659  	LongValue *int64 `locationName:"longValue" type:"long"`
  1660  
  1661  	// A value of string data type.
  1662  	StringValue *string `locationName:"stringValue" type:"string"`
  1663  }
  1664  
  1665  // String returns the string representation.
  1666  //
  1667  // API parameter values that are decorated as "sensitive" in the API will not
  1668  // be included in the string output. The member name will be present, but the
  1669  // value will be replaced with "sensitive".
  1670  func (s Field) String() string {
  1671  	return awsutil.Prettify(s)
  1672  }
  1673  
  1674  // GoString returns the string representation.
  1675  //
  1676  // API parameter values that are decorated as "sensitive" in the API will not
  1677  // be included in the string output. The member name will be present, but the
  1678  // value will be replaced with "sensitive".
  1679  func (s Field) GoString() string {
  1680  	return s.String()
  1681  }
  1682  
  1683  // SetArrayValue sets the ArrayValue field's value.
  1684  func (s *Field) SetArrayValue(v *ArrayValue) *Field {
  1685  	s.ArrayValue = v
  1686  	return s
  1687  }
  1688  
  1689  // SetBlobValue sets the BlobValue field's value.
  1690  func (s *Field) SetBlobValue(v []byte) *Field {
  1691  	s.BlobValue = v
  1692  	return s
  1693  }
  1694  
  1695  // SetBooleanValue sets the BooleanValue field's value.
  1696  func (s *Field) SetBooleanValue(v bool) *Field {
  1697  	s.BooleanValue = &v
  1698  	return s
  1699  }
  1700  
  1701  // SetDoubleValue sets the DoubleValue field's value.
  1702  func (s *Field) SetDoubleValue(v float64) *Field {
  1703  	s.DoubleValue = &v
  1704  	return s
  1705  }
  1706  
  1707  // SetIsNull sets the IsNull field's value.
  1708  func (s *Field) SetIsNull(v bool) *Field {
  1709  	s.IsNull = &v
  1710  	return s
  1711  }
  1712  
  1713  // SetLongValue sets the LongValue field's value.
  1714  func (s *Field) SetLongValue(v int64) *Field {
  1715  	s.LongValue = &v
  1716  	return s
  1717  }
  1718  
  1719  // SetStringValue sets the StringValue field's value.
  1720  func (s *Field) SetStringValue(v string) *Field {
  1721  	s.StringValue = &v
  1722  	return s
  1723  }
  1724  
  1725  // There are insufficient privileges to make the call.
  1726  type ForbiddenException struct {
  1727  	_            struct{}                  `type:"structure"`
  1728  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1729  
  1730  	// The error message returned by this ForbiddenException error.
  1731  	Message_ *string `locationName:"message" type:"string"`
  1732  }
  1733  
  1734  // String returns the string representation.
  1735  //
  1736  // API parameter values that are decorated as "sensitive" in the API will not
  1737  // be included in the string output. The member name will be present, but the
  1738  // value will be replaced with "sensitive".
  1739  func (s ForbiddenException) String() string {
  1740  	return awsutil.Prettify(s)
  1741  }
  1742  
  1743  // GoString returns the string representation.
  1744  //
  1745  // API parameter values that are decorated as "sensitive" in the API will not
  1746  // be included in the string output. The member name will be present, but the
  1747  // value will be replaced with "sensitive".
  1748  func (s ForbiddenException) GoString() string {
  1749  	return s.String()
  1750  }
  1751  
  1752  func newErrorForbiddenException(v protocol.ResponseMetadata) error {
  1753  	return &ForbiddenException{
  1754  		RespMetadata: v,
  1755  	}
  1756  }
  1757  
  1758  // Code returns the exception type name.
  1759  func (s *ForbiddenException) Code() string {
  1760  	return "ForbiddenException"
  1761  }
  1762  
  1763  // Message returns the exception's message.
  1764  func (s *ForbiddenException) Message() string {
  1765  	if s.Message_ != nil {
  1766  		return *s.Message_
  1767  	}
  1768  	return ""
  1769  }
  1770  
  1771  // OrigErr always returns nil, satisfies awserr.Error interface.
  1772  func (s *ForbiddenException) OrigErr() error {
  1773  	return nil
  1774  }
  1775  
  1776  func (s *ForbiddenException) Error() string {
  1777  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1778  }
  1779  
  1780  // Status code returns the HTTP status code for the request's response error.
  1781  func (s *ForbiddenException) StatusCode() int {
  1782  	return s.RespMetadata.StatusCode
  1783  }
  1784  
  1785  // RequestID returns the service's response RequestID for request.
  1786  func (s *ForbiddenException) RequestID() string {
  1787  	return s.RespMetadata.RequestID
  1788  }
  1789  
  1790  // An internal error occurred.
  1791  type InternalServerErrorException struct {
  1792  	_            struct{}                  `type:"structure"`
  1793  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1794  
  1795  	Message_ *string `locationName:"message" type:"string"`
  1796  }
  1797  
  1798  // String returns the string representation.
  1799  //
  1800  // API parameter values that are decorated as "sensitive" in the API will not
  1801  // be included in the string output. The member name will be present, but the
  1802  // value will be replaced with "sensitive".
  1803  func (s InternalServerErrorException) String() string {
  1804  	return awsutil.Prettify(s)
  1805  }
  1806  
  1807  // GoString returns the string representation.
  1808  //
  1809  // API parameter values that are decorated as "sensitive" in the API will not
  1810  // be included in the string output. The member name will be present, but the
  1811  // value will be replaced with "sensitive".
  1812  func (s InternalServerErrorException) GoString() string {
  1813  	return s.String()
  1814  }
  1815  
  1816  func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
  1817  	return &InternalServerErrorException{
  1818  		RespMetadata: v,
  1819  	}
  1820  }
  1821  
  1822  // Code returns the exception type name.
  1823  func (s *InternalServerErrorException) Code() string {
  1824  	return "InternalServerErrorException"
  1825  }
  1826  
  1827  // Message returns the exception's message.
  1828  func (s *InternalServerErrorException) Message() string {
  1829  	if s.Message_ != nil {
  1830  		return *s.Message_
  1831  	}
  1832  	return ""
  1833  }
  1834  
  1835  // OrigErr always returns nil, satisfies awserr.Error interface.
  1836  func (s *InternalServerErrorException) OrigErr() error {
  1837  	return nil
  1838  }
  1839  
  1840  func (s *InternalServerErrorException) Error() string {
  1841  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1842  }
  1843  
  1844  // Status code returns the HTTP status code for the request's response error.
  1845  func (s *InternalServerErrorException) StatusCode() int {
  1846  	return s.RespMetadata.StatusCode
  1847  }
  1848  
  1849  // RequestID returns the service's response RequestID for request.
  1850  func (s *InternalServerErrorException) RequestID() string {
  1851  	return s.RespMetadata.RequestID
  1852  }
  1853  
  1854  // The resourceArn, secretArn, or transactionId value can't be found.
  1855  type NotFoundException struct {
  1856  	_            struct{}                  `type:"structure"`
  1857  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1858  
  1859  	// The error message returned by this NotFoundException error.
  1860  	Message_ *string `locationName:"message" type:"string"`
  1861  }
  1862  
  1863  // String returns the string representation.
  1864  //
  1865  // API parameter values that are decorated as "sensitive" in the API will not
  1866  // be included in the string output. The member name will be present, but the
  1867  // value will be replaced with "sensitive".
  1868  func (s NotFoundException) String() string {
  1869  	return awsutil.Prettify(s)
  1870  }
  1871  
  1872  // GoString returns the string representation.
  1873  //
  1874  // API parameter values that are decorated as "sensitive" in the API will not
  1875  // be included in the string output. The member name will be present, but the
  1876  // value will be replaced with "sensitive".
  1877  func (s NotFoundException) GoString() string {
  1878  	return s.String()
  1879  }
  1880  
  1881  func newErrorNotFoundException(v protocol.ResponseMetadata) error {
  1882  	return &NotFoundException{
  1883  		RespMetadata: v,
  1884  	}
  1885  }
  1886  
  1887  // Code returns the exception type name.
  1888  func (s *NotFoundException) Code() string {
  1889  	return "NotFoundException"
  1890  }
  1891  
  1892  // Message returns the exception's message.
  1893  func (s *NotFoundException) Message() string {
  1894  	if s.Message_ != nil {
  1895  		return *s.Message_
  1896  	}
  1897  	return ""
  1898  }
  1899  
  1900  // OrigErr always returns nil, satisfies awserr.Error interface.
  1901  func (s *NotFoundException) OrigErr() error {
  1902  	return nil
  1903  }
  1904  
  1905  func (s *NotFoundException) Error() string {
  1906  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1907  }
  1908  
  1909  // Status code returns the HTTP status code for the request's response error.
  1910  func (s *NotFoundException) StatusCode() int {
  1911  	return s.RespMetadata.StatusCode
  1912  }
  1913  
  1914  // RequestID returns the service's response RequestID for request.
  1915  func (s *NotFoundException) RequestID() string {
  1916  	return s.RespMetadata.RequestID
  1917  }
  1918  
  1919  // A record returned by a call.
  1920  type Record struct {
  1921  	_ struct{} `type:"structure"`
  1922  
  1923  	// The values returned in the record.
  1924  	Values []*Value `locationName:"values" type:"list"`
  1925  }
  1926  
  1927  // String returns the string representation.
  1928  //
  1929  // API parameter values that are decorated as "sensitive" in the API will not
  1930  // be included in the string output. The member name will be present, but the
  1931  // value will be replaced with "sensitive".
  1932  func (s Record) String() string {
  1933  	return awsutil.Prettify(s)
  1934  }
  1935  
  1936  // GoString returns the string representation.
  1937  //
  1938  // API parameter values that are decorated as "sensitive" in the API will not
  1939  // be included in the string output. The member name will be present, but the
  1940  // value will be replaced with "sensitive".
  1941  func (s Record) GoString() string {
  1942  	return s.String()
  1943  }
  1944  
  1945  // SetValues sets the Values field's value.
  1946  func (s *Record) SetValues(v []*Value) *Record {
  1947  	s.Values = v
  1948  	return s
  1949  }
  1950  
  1951  // The result set returned by a SQL statement.
  1952  type ResultFrame struct {
  1953  	_ struct{} `type:"structure"`
  1954  
  1955  	// The records in the result set.
  1956  	Records []*Record `locationName:"records" type:"list"`
  1957  
  1958  	// The result-set metadata in the result set.
  1959  	ResultSetMetadata *ResultSetMetadata `locationName:"resultSetMetadata" type:"structure"`
  1960  }
  1961  
  1962  // String returns the string representation.
  1963  //
  1964  // API parameter values that are decorated as "sensitive" in the API will not
  1965  // be included in the string output. The member name will be present, but the
  1966  // value will be replaced with "sensitive".
  1967  func (s ResultFrame) String() string {
  1968  	return awsutil.Prettify(s)
  1969  }
  1970  
  1971  // GoString returns the string representation.
  1972  //
  1973  // API parameter values that are decorated as "sensitive" in the API will not
  1974  // be included in the string output. The member name will be present, but the
  1975  // value will be replaced with "sensitive".
  1976  func (s ResultFrame) GoString() string {
  1977  	return s.String()
  1978  }
  1979  
  1980  // SetRecords sets the Records field's value.
  1981  func (s *ResultFrame) SetRecords(v []*Record) *ResultFrame {
  1982  	s.Records = v
  1983  	return s
  1984  }
  1985  
  1986  // SetResultSetMetadata sets the ResultSetMetadata field's value.
  1987  func (s *ResultFrame) SetResultSetMetadata(v *ResultSetMetadata) *ResultFrame {
  1988  	s.ResultSetMetadata = v
  1989  	return s
  1990  }
  1991  
  1992  // The metadata of the result set returned by a SQL statement.
  1993  type ResultSetMetadata struct {
  1994  	_ struct{} `type:"structure"`
  1995  
  1996  	// The number of columns in the result set.
  1997  	ColumnCount *int64 `locationName:"columnCount" type:"long"`
  1998  
  1999  	// The metadata of the columns in the result set.
  2000  	ColumnMetadata []*ColumnMetadata `locationName:"columnMetadata" type:"list"`
  2001  }
  2002  
  2003  // String returns the string representation.
  2004  //
  2005  // API parameter values that are decorated as "sensitive" in the API will not
  2006  // be included in the string output. The member name will be present, but the
  2007  // value will be replaced with "sensitive".
  2008  func (s ResultSetMetadata) String() string {
  2009  	return awsutil.Prettify(s)
  2010  }
  2011  
  2012  // GoString returns the string representation.
  2013  //
  2014  // API parameter values that are decorated as "sensitive" in the API will not
  2015  // be included in the string output. The member name will be present, but the
  2016  // value will be replaced with "sensitive".
  2017  func (s ResultSetMetadata) GoString() string {
  2018  	return s.String()
  2019  }
  2020  
  2021  // SetColumnCount sets the ColumnCount field's value.
  2022  func (s *ResultSetMetadata) SetColumnCount(v int64) *ResultSetMetadata {
  2023  	s.ColumnCount = &v
  2024  	return s
  2025  }
  2026  
  2027  // SetColumnMetadata sets the ColumnMetadata field's value.
  2028  func (s *ResultSetMetadata) SetColumnMetadata(v []*ColumnMetadata) *ResultSetMetadata {
  2029  	s.ColumnMetadata = v
  2030  	return s
  2031  }
  2032  
  2033  // Options that control how the result set is returned.
  2034  type ResultSetOptions struct {
  2035  	_ struct{} `type:"structure"`
  2036  
  2037  	// A value that indicates how a field of DECIMAL type is represented in the
  2038  	// response. The value of STRING, the default, specifies that it is converted
  2039  	// to a String value. The value of DOUBLE_OR_LONG specifies that it is converted
  2040  	// to a Long value if its scale is 0, or to a Double value otherwise.
  2041  	//
  2042  	// Conversion to Double or Long can result in roundoff errors due to precision
  2043  	// loss. We recommend converting to String, especially when working with currency
  2044  	// values.
  2045  	DecimalReturnType *string `locationName:"decimalReturnType" type:"string" enum:"DecimalReturnType"`
  2046  }
  2047  
  2048  // String returns the string representation.
  2049  //
  2050  // API parameter values that are decorated as "sensitive" in the API will not
  2051  // be included in the string output. The member name will be present, but the
  2052  // value will be replaced with "sensitive".
  2053  func (s ResultSetOptions) String() string {
  2054  	return awsutil.Prettify(s)
  2055  }
  2056  
  2057  // GoString returns the string representation.
  2058  //
  2059  // API parameter values that are decorated as "sensitive" in the API will not
  2060  // be included in the string output. The member name will be present, but the
  2061  // value will be replaced with "sensitive".
  2062  func (s ResultSetOptions) GoString() string {
  2063  	return s.String()
  2064  }
  2065  
  2066  // SetDecimalReturnType sets the DecimalReturnType field's value.
  2067  func (s *ResultSetOptions) SetDecimalReturnType(v string) *ResultSetOptions {
  2068  	s.DecimalReturnType = &v
  2069  	return s
  2070  }
  2071  
  2072  // The request parameters represent the input of a request to perform a rollback
  2073  // of a transaction.
  2074  type RollbackTransactionInput struct {
  2075  	_ struct{} `type:"structure"`
  2076  
  2077  	// The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
  2078  	//
  2079  	// ResourceArn is a required field
  2080  	ResourceArn *string `locationName:"resourceArn" min:"11" type:"string" required:"true"`
  2081  
  2082  	// The name or ARN of the secret that enables access to the DB cluster.
  2083  	//
  2084  	// SecretArn is a required field
  2085  	SecretArn *string `locationName:"secretArn" min:"11" type:"string" required:"true"`
  2086  
  2087  	// The identifier of the transaction to roll back.
  2088  	//
  2089  	// TransactionId is a required field
  2090  	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
  2091  }
  2092  
  2093  // String returns the string representation.
  2094  //
  2095  // API parameter values that are decorated as "sensitive" in the API will not
  2096  // be included in the string output. The member name will be present, but the
  2097  // value will be replaced with "sensitive".
  2098  func (s RollbackTransactionInput) String() string {
  2099  	return awsutil.Prettify(s)
  2100  }
  2101  
  2102  // GoString returns the string representation.
  2103  //
  2104  // API parameter values that are decorated as "sensitive" in the API will not
  2105  // be included in the string output. The member name will be present, but the
  2106  // value will be replaced with "sensitive".
  2107  func (s RollbackTransactionInput) GoString() string {
  2108  	return s.String()
  2109  }
  2110  
  2111  // Validate inspects the fields of the type to determine if they are valid.
  2112  func (s *RollbackTransactionInput) Validate() error {
  2113  	invalidParams := request.ErrInvalidParams{Context: "RollbackTransactionInput"}
  2114  	if s.ResourceArn == nil {
  2115  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2116  	}
  2117  	if s.ResourceArn != nil && len(*s.ResourceArn) < 11 {
  2118  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 11))
  2119  	}
  2120  	if s.SecretArn == nil {
  2121  		invalidParams.Add(request.NewErrParamRequired("SecretArn"))
  2122  	}
  2123  	if s.SecretArn != nil && len(*s.SecretArn) < 11 {
  2124  		invalidParams.Add(request.NewErrParamMinLen("SecretArn", 11))
  2125  	}
  2126  	if s.TransactionId == nil {
  2127  		invalidParams.Add(request.NewErrParamRequired("TransactionId"))
  2128  	}
  2129  
  2130  	if invalidParams.Len() > 0 {
  2131  		return invalidParams
  2132  	}
  2133  	return nil
  2134  }
  2135  
  2136  // SetResourceArn sets the ResourceArn field's value.
  2137  func (s *RollbackTransactionInput) SetResourceArn(v string) *RollbackTransactionInput {
  2138  	s.ResourceArn = &v
  2139  	return s
  2140  }
  2141  
  2142  // SetSecretArn sets the SecretArn field's value.
  2143  func (s *RollbackTransactionInput) SetSecretArn(v string) *RollbackTransactionInput {
  2144  	s.SecretArn = &v
  2145  	return s
  2146  }
  2147  
  2148  // SetTransactionId sets the TransactionId field's value.
  2149  func (s *RollbackTransactionInput) SetTransactionId(v string) *RollbackTransactionInput {
  2150  	s.TransactionId = &v
  2151  	return s
  2152  }
  2153  
  2154  // The response elements represent the output of a request to perform a rollback
  2155  // of a transaction.
  2156  type RollbackTransactionOutput struct {
  2157  	_ struct{} `type:"structure"`
  2158  
  2159  	// The status of the rollback operation.
  2160  	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
  2161  }
  2162  
  2163  // String returns the string representation.
  2164  //
  2165  // API parameter values that are decorated as "sensitive" in the API will not
  2166  // be included in the string output. The member name will be present, but the
  2167  // value will be replaced with "sensitive".
  2168  func (s RollbackTransactionOutput) String() string {
  2169  	return awsutil.Prettify(s)
  2170  }
  2171  
  2172  // GoString returns the string representation.
  2173  //
  2174  // API parameter values that are decorated as "sensitive" in the API will not
  2175  // be included in the string output. The member name will be present, but the
  2176  // value will be replaced with "sensitive".
  2177  func (s RollbackTransactionOutput) GoString() string {
  2178  	return s.String()
  2179  }
  2180  
  2181  // SetTransactionStatus sets the TransactionStatus field's value.
  2182  func (s *RollbackTransactionOutput) SetTransactionStatus(v string) *RollbackTransactionOutput {
  2183  	s.TransactionStatus = &v
  2184  	return s
  2185  }
  2186  
  2187  // The service specified by the resourceArn parameter is not available.
  2188  type ServiceUnavailableError struct {
  2189  	_            struct{}                  `type:"structure"`
  2190  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2191  
  2192  	Message_ *string `locationName:"message" type:"string"`
  2193  }
  2194  
  2195  // String returns the string representation.
  2196  //
  2197  // API parameter values that are decorated as "sensitive" in the API will not
  2198  // be included in the string output. The member name will be present, but the
  2199  // value will be replaced with "sensitive".
  2200  func (s ServiceUnavailableError) String() string {
  2201  	return awsutil.Prettify(s)
  2202  }
  2203  
  2204  // GoString returns the string representation.
  2205  //
  2206  // API parameter values that are decorated as "sensitive" in the API will not
  2207  // be included in the string output. The member name will be present, but the
  2208  // value will be replaced with "sensitive".
  2209  func (s ServiceUnavailableError) GoString() string {
  2210  	return s.String()
  2211  }
  2212  
  2213  func newErrorServiceUnavailableError(v protocol.ResponseMetadata) error {
  2214  	return &ServiceUnavailableError{
  2215  		RespMetadata: v,
  2216  	}
  2217  }
  2218  
  2219  // Code returns the exception type name.
  2220  func (s *ServiceUnavailableError) Code() string {
  2221  	return "ServiceUnavailableError"
  2222  }
  2223  
  2224  // Message returns the exception's message.
  2225  func (s *ServiceUnavailableError) Message() string {
  2226  	if s.Message_ != nil {
  2227  		return *s.Message_
  2228  	}
  2229  	return ""
  2230  }
  2231  
  2232  // OrigErr always returns nil, satisfies awserr.Error interface.
  2233  func (s *ServiceUnavailableError) OrigErr() error {
  2234  	return nil
  2235  }
  2236  
  2237  func (s *ServiceUnavailableError) Error() string {
  2238  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2239  }
  2240  
  2241  // Status code returns the HTTP status code for the request's response error.
  2242  func (s *ServiceUnavailableError) StatusCode() int {
  2243  	return s.RespMetadata.StatusCode
  2244  }
  2245  
  2246  // RequestID returns the service's response RequestID for request.
  2247  func (s *ServiceUnavailableError) RequestID() string {
  2248  	return s.RespMetadata.RequestID
  2249  }
  2250  
  2251  // A parameter used in a SQL statement.
  2252  type SqlParameter struct {
  2253  	_ struct{} `type:"structure"`
  2254  
  2255  	// The name of the parameter.
  2256  	Name *string `locationName:"name" type:"string"`
  2257  
  2258  	// A hint that specifies the correct object type for data type mapping. Possible
  2259  	// values are as follows:
  2260  	//
  2261  	//    * DATE - The corresponding String parameter value is sent as an object
  2262  	//    of DATE type to the database. The accepted format is YYYY-MM-DD.
  2263  	//
  2264  	//    * DECIMAL - The corresponding String parameter value is sent as an object
  2265  	//    of DECIMAL type to the database.
  2266  	//
  2267  	//    * JSON - The corresponding String parameter value is sent as an object
  2268  	//    of JSON type to the database.
  2269  	//
  2270  	//    * TIME - The corresponding String parameter value is sent as an object
  2271  	//    of TIME type to the database. The accepted format is HH:MM:SS[.FFF].
  2272  	//
  2273  	//    * TIMESTAMP - The corresponding String parameter value is sent as an object
  2274  	//    of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
  2275  	//
  2276  	//    * UUID - The corresponding String parameter value is sent as an object
  2277  	//    of UUID type to the database.
  2278  	TypeHint *string `locationName:"typeHint" type:"string" enum:"TypeHint"`
  2279  
  2280  	// The value of the parameter.
  2281  	Value *Field `locationName:"value" type:"structure"`
  2282  }
  2283  
  2284  // String returns the string representation.
  2285  //
  2286  // API parameter values that are decorated as "sensitive" in the API will not
  2287  // be included in the string output. The member name will be present, but the
  2288  // value will be replaced with "sensitive".
  2289  func (s SqlParameter) String() string {
  2290  	return awsutil.Prettify(s)
  2291  }
  2292  
  2293  // GoString returns the string representation.
  2294  //
  2295  // API parameter values that are decorated as "sensitive" in the API will not
  2296  // be included in the string output. The member name will be present, but the
  2297  // value will be replaced with "sensitive".
  2298  func (s SqlParameter) GoString() string {
  2299  	return s.String()
  2300  }
  2301  
  2302  // SetName sets the Name field's value.
  2303  func (s *SqlParameter) SetName(v string) *SqlParameter {
  2304  	s.Name = &v
  2305  	return s
  2306  }
  2307  
  2308  // SetTypeHint sets the TypeHint field's value.
  2309  func (s *SqlParameter) SetTypeHint(v string) *SqlParameter {
  2310  	s.TypeHint = &v
  2311  	return s
  2312  }
  2313  
  2314  // SetValue sets the Value field's value.
  2315  func (s *SqlParameter) SetValue(v *Field) *SqlParameter {
  2316  	s.Value = v
  2317  	return s
  2318  }
  2319  
  2320  // The result of a SQL statement.
  2321  //
  2322  //    <important> <p>This data type is deprecated.</p> </important>
  2323  type SqlStatementResult struct {
  2324  	_ struct{} `type:"structure"`
  2325  
  2326  	// The number of records updated by a SQL statement.
  2327  	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`
  2328  
  2329  	// The result set of the SQL statement.
  2330  	ResultFrame *ResultFrame `locationName:"resultFrame" type:"structure"`
  2331  }
  2332  
  2333  // String returns the string representation.
  2334  //
  2335  // API parameter values that are decorated as "sensitive" in the API will not
  2336  // be included in the string output. The member name will be present, but the
  2337  // value will be replaced with "sensitive".
  2338  func (s SqlStatementResult) String() string {
  2339  	return awsutil.Prettify(s)
  2340  }
  2341  
  2342  // GoString returns the string representation.
  2343  //
  2344  // API parameter values that are decorated as "sensitive" in the API will not
  2345  // be included in the string output. The member name will be present, but the
  2346  // value will be replaced with "sensitive".
  2347  func (s SqlStatementResult) GoString() string {
  2348  	return s.String()
  2349  }
  2350  
  2351  // SetNumberOfRecordsUpdated sets the NumberOfRecordsUpdated field's value.
  2352  func (s *SqlStatementResult) SetNumberOfRecordsUpdated(v int64) *SqlStatementResult {
  2353  	s.NumberOfRecordsUpdated = &v
  2354  	return s
  2355  }
  2356  
  2357  // SetResultFrame sets the ResultFrame field's value.
  2358  func (s *SqlStatementResult) SetResultFrame(v *ResultFrame) *SqlStatementResult {
  2359  	s.ResultFrame = v
  2360  	return s
  2361  }
  2362  
  2363  // The execution of the SQL statement timed out.
  2364  type StatementTimeoutException struct {
  2365  	_            struct{}                  `type:"structure"`
  2366  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2367  
  2368  	// The database connection ID that executed the SQL statement.
  2369  	DbConnectionId *int64 `locationName:"dbConnectionId" type:"long"`
  2370  
  2371  	// The error message returned by this StatementTimeoutException error.
  2372  	Message_ *string `locationName:"message" type:"string"`
  2373  }
  2374  
  2375  // String returns the string representation.
  2376  //
  2377  // API parameter values that are decorated as "sensitive" in the API will not
  2378  // be included in the string output. The member name will be present, but the
  2379  // value will be replaced with "sensitive".
  2380  func (s StatementTimeoutException) String() string {
  2381  	return awsutil.Prettify(s)
  2382  }
  2383  
  2384  // GoString returns the string representation.
  2385  //
  2386  // API parameter values that are decorated as "sensitive" in the API will not
  2387  // be included in the string output. The member name will be present, but the
  2388  // value will be replaced with "sensitive".
  2389  func (s StatementTimeoutException) GoString() string {
  2390  	return s.String()
  2391  }
  2392  
  2393  func newErrorStatementTimeoutException(v protocol.ResponseMetadata) error {
  2394  	return &StatementTimeoutException{
  2395  		RespMetadata: v,
  2396  	}
  2397  }
  2398  
  2399  // Code returns the exception type name.
  2400  func (s *StatementTimeoutException) Code() string {
  2401  	return "StatementTimeoutException"
  2402  }
  2403  
  2404  // Message returns the exception's message.
  2405  func (s *StatementTimeoutException) Message() string {
  2406  	if s.Message_ != nil {
  2407  		return *s.Message_
  2408  	}
  2409  	return ""
  2410  }
  2411  
  2412  // OrigErr always returns nil, satisfies awserr.Error interface.
  2413  func (s *StatementTimeoutException) OrigErr() error {
  2414  	return nil
  2415  }
  2416  
  2417  func (s *StatementTimeoutException) Error() string {
  2418  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  2419  }
  2420  
  2421  // Status code returns the HTTP status code for the request's response error.
  2422  func (s *StatementTimeoutException) StatusCode() int {
  2423  	return s.RespMetadata.StatusCode
  2424  }
  2425  
  2426  // RequestID returns the service's response RequestID for request.
  2427  func (s *StatementTimeoutException) RequestID() string {
  2428  	return s.RespMetadata.RequestID
  2429  }
  2430  
  2431  // A structure value returned by a call.
  2432  type StructValue struct {
  2433  	_ struct{} `type:"structure"`
  2434  
  2435  	// The attributes returned in the record.
  2436  	Attributes []*Value `locationName:"attributes" type:"list"`
  2437  }
  2438  
  2439  // String returns the string representation.
  2440  //
  2441  // API parameter values that are decorated as "sensitive" in the API will not
  2442  // be included in the string output. The member name will be present, but the
  2443  // value will be replaced with "sensitive".
  2444  func (s StructValue) String() string {
  2445  	return awsutil.Prettify(s)
  2446  }
  2447  
  2448  // GoString returns the string representation.
  2449  //
  2450  // API parameter values that are decorated as "sensitive" in the API will not
  2451  // be included in the string output. The member name will be present, but the
  2452  // value will be replaced with "sensitive".
  2453  func (s StructValue) GoString() string {
  2454  	return s.String()
  2455  }
  2456  
  2457  // SetAttributes sets the Attributes field's value.
  2458  func (s *StructValue) SetAttributes(v []*Value) *StructValue {
  2459  	s.Attributes = v
  2460  	return s
  2461  }
  2462  
  2463  // The response elements represent the results of an update.
  2464  type UpdateResult struct {
  2465  	_ struct{} `type:"structure"`
  2466  
  2467  	// Values for fields generated during the request.
  2468  	GeneratedFields []*Field `locationName:"generatedFields" type:"list"`
  2469  }
  2470  
  2471  // String returns the string representation.
  2472  //
  2473  // API parameter values that are decorated as "sensitive" in the API will not
  2474  // be included in the string output. The member name will be present, but the
  2475  // value will be replaced with "sensitive".
  2476  func (s UpdateResult) String() string {
  2477  	return awsutil.Prettify(s)
  2478  }
  2479  
  2480  // GoString returns the string representation.
  2481  //
  2482  // API parameter values that are decorated as "sensitive" in the API will not
  2483  // be included in the string output. The member name will be present, but the
  2484  // value will be replaced with "sensitive".
  2485  func (s UpdateResult) GoString() string {
  2486  	return s.String()
  2487  }
  2488  
  2489  // SetGeneratedFields sets the GeneratedFields field's value.
  2490  func (s *UpdateResult) SetGeneratedFields(v []*Field) *UpdateResult {
  2491  	s.GeneratedFields = v
  2492  	return s
  2493  }
  2494  
  2495  // Contains the value of a column.
  2496  //
  2497  //    <important> <p>This data type is deprecated.</p> </important>
  2498  type Value struct {
  2499  	_ struct{} `type:"structure"`
  2500  
  2501  	// An array of column values.
  2502  	ArrayValues []*Value `locationName:"arrayValues" type:"list"`
  2503  
  2504  	// A value for a column of big integer data type.
  2505  	BigIntValue *int64 `locationName:"bigIntValue" type:"long"`
  2506  
  2507  	// A value for a column of BIT data type.
  2508  	BitValue *bool `locationName:"bitValue" type:"boolean"`
  2509  
  2510  	// A value for a column of BLOB data type.
  2511  	// BlobValue is automatically base64 encoded/decoded by the SDK.
  2512  	BlobValue []byte `locationName:"blobValue" type:"blob"`
  2513  
  2514  	// A value for a column of double data type.
  2515  	DoubleValue *float64 `locationName:"doubleValue" type:"double"`
  2516  
  2517  	// A value for a column of integer data type.
  2518  	IntValue *int64 `locationName:"intValue" type:"integer"`
  2519  
  2520  	// A NULL value.
  2521  	IsNull *bool `locationName:"isNull" type:"boolean"`
  2522  
  2523  	// A value for a column of real data type.
  2524  	RealValue *float64 `locationName:"realValue" type:"float"`
  2525  
  2526  	// A value for a column of string data type.
  2527  	StringValue *string `locationName:"stringValue" type:"string"`
  2528  
  2529  	// A value for a column of STRUCT data type.
  2530  	StructValue *StructValue `locationName:"structValue" type:"structure"`
  2531  }
  2532  
  2533  // String returns the string representation.
  2534  //
  2535  // API parameter values that are decorated as "sensitive" in the API will not
  2536  // be included in the string output. The member name will be present, but the
  2537  // value will be replaced with "sensitive".
  2538  func (s Value) String() string {
  2539  	return awsutil.Prettify(s)
  2540  }
  2541  
  2542  // GoString returns the string representation.
  2543  //
  2544  // API parameter values that are decorated as "sensitive" in the API will not
  2545  // be included in the string output. The member name will be present, but the
  2546  // value will be replaced with "sensitive".
  2547  func (s Value) GoString() string {
  2548  	return s.String()
  2549  }
  2550  
  2551  // SetArrayValues sets the ArrayValues field's value.
  2552  func (s *Value) SetArrayValues(v []*Value) *Value {
  2553  	s.ArrayValues = v
  2554  	return s
  2555  }
  2556  
  2557  // SetBigIntValue sets the BigIntValue field's value.
  2558  func (s *Value) SetBigIntValue(v int64) *Value {
  2559  	s.BigIntValue = &v
  2560  	return s
  2561  }
  2562  
  2563  // SetBitValue sets the BitValue field's value.
  2564  func (s *Value) SetBitValue(v bool) *Value {
  2565  	s.BitValue = &v
  2566  	return s
  2567  }
  2568  
  2569  // SetBlobValue sets the BlobValue field's value.
  2570  func (s *Value) SetBlobValue(v []byte) *Value {
  2571  	s.BlobValue = v
  2572  	return s
  2573  }
  2574  
  2575  // SetDoubleValue sets the DoubleValue field's value.
  2576  func (s *Value) SetDoubleValue(v float64) *Value {
  2577  	s.DoubleValue = &v
  2578  	return s
  2579  }
  2580  
  2581  // SetIntValue sets the IntValue field's value.
  2582  func (s *Value) SetIntValue(v int64) *Value {
  2583  	s.IntValue = &v
  2584  	return s
  2585  }
  2586  
  2587  // SetIsNull sets the IsNull field's value.
  2588  func (s *Value) SetIsNull(v bool) *Value {
  2589  	s.IsNull = &v
  2590  	return s
  2591  }
  2592  
  2593  // SetRealValue sets the RealValue field's value.
  2594  func (s *Value) SetRealValue(v float64) *Value {
  2595  	s.RealValue = &v
  2596  	return s
  2597  }
  2598  
  2599  // SetStringValue sets the StringValue field's value.
  2600  func (s *Value) SetStringValue(v string) *Value {
  2601  	s.StringValue = &v
  2602  	return s
  2603  }
  2604  
  2605  // SetStructValue sets the StructValue field's value.
  2606  func (s *Value) SetStructValue(v *StructValue) *Value {
  2607  	s.StructValue = v
  2608  	return s
  2609  }
  2610  
  2611  const (
  2612  	// DecimalReturnTypeString is a DecimalReturnType enum value
  2613  	DecimalReturnTypeString = "STRING"
  2614  
  2615  	// DecimalReturnTypeDoubleOrLong is a DecimalReturnType enum value
  2616  	DecimalReturnTypeDoubleOrLong = "DOUBLE_OR_LONG"
  2617  )
  2618  
  2619  // DecimalReturnType_Values returns all elements of the DecimalReturnType enum
  2620  func DecimalReturnType_Values() []string {
  2621  	return []string{
  2622  		DecimalReturnTypeString,
  2623  		DecimalReturnTypeDoubleOrLong,
  2624  	}
  2625  }
  2626  
  2627  const (
  2628  	// TypeHintJson is a TypeHint enum value
  2629  	TypeHintJson = "JSON"
  2630  
  2631  	// TypeHintUuid is a TypeHint enum value
  2632  	TypeHintUuid = "UUID"
  2633  
  2634  	// TypeHintTimestamp is a TypeHint enum value
  2635  	TypeHintTimestamp = "TIMESTAMP"
  2636  
  2637  	// TypeHintDate is a TypeHint enum value
  2638  	TypeHintDate = "DATE"
  2639  
  2640  	// TypeHintTime is a TypeHint enum value
  2641  	TypeHintTime = "TIME"
  2642  
  2643  	// TypeHintDecimal is a TypeHint enum value
  2644  	TypeHintDecimal = "DECIMAL"
  2645  )
  2646  
  2647  // TypeHint_Values returns all elements of the TypeHint enum
  2648  func TypeHint_Values() []string {
  2649  	return []string{
  2650  		TypeHintJson,
  2651  		TypeHintUuid,
  2652  		TypeHintTimestamp,
  2653  		TypeHintDate,
  2654  		TypeHintTime,
  2655  		TypeHintDecimal,
  2656  	}
  2657  }