package rdsdata

import "github.com/aws/aws-sdk-go-v2/service/rdsdata"

Package rdsdata provides the client and types for making API requests to AWS RDS DataService.

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work with the Data Service API.

For more information about the Data Service API, see Using the Data API for Aurora Serverless (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) in the Amazon Aurora User Guide.

See https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01 for more information on this service.

See rdsdata package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/rdsdata/

Using the Client

To use AWS RDS DataService with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS RDS DataService client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/rdsdata/#New

Index

Constants

const (
	ServiceName = "AWS RDS DataService" // Service's name
	ServiceID   = "RDSData"             // Service's identifier
	EndpointsID = "rds-data"            // Service's Endpoint identifier
)
const (

	// ErrCodeBadRequestException for service response error code
	// "BadRequestException".
	//
	// There is an error in the call or in a SQL statement.
	ErrCodeBadRequestException = "BadRequestException"

	// ErrCodeForbiddenException for service response error code
	// "ForbiddenException".
	//
	// There are insufficient privileges to make the call.
	ErrCodeForbiddenException = "ForbiddenException"

	// ErrCodeInternalServerErrorException for service response error code
	// "InternalServerErrorException".
	//
	// An internal error occurred.
	ErrCodeInternalServerErrorException = "InternalServerErrorException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// The resourceArn, secretArn, or transactionId value can't be found.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodeServiceUnavailableError for service response error code
	// "ServiceUnavailableError".
	//
	// The service specified by the resourceArn parameter is not available.
	ErrCodeServiceUnavailableError = "ServiceUnavailableError"

	// ErrCodeStatementTimeoutException for service response error code
	// "StatementTimeoutException".
	//
	// The execution of the SQL statement timed out.
	ErrCodeStatementTimeoutException = "StatementTimeoutException"
)

Types

type BatchExecuteStatementInput

type BatchExecuteStatementInput struct {
	Database *string `locationName:"database" type:"string"`

	ParameterSets [][]SqlParameter `locationName:"parameterSets" type:"list"`

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// Sql is a required field
	Sql *string `locationName:"sql" type:"string" required:"true"`

	TransactionId *string `locationName:"transactionId" type:"string"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a SQL statement over an array of data. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementRequest

func (BatchExecuteStatementInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BatchExecuteStatementInput) String

String returns the string representation

func (*BatchExecuteStatementInput) Validate

func (s *BatchExecuteStatementInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchExecuteStatementOutput

type BatchExecuteStatementOutput struct {
	UpdateResults []UpdateResult `locationName:"updateResults" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the output of a SQL statement over an array of data. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementResponse

func (BatchExecuteStatementOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BatchExecuteStatementOutput) String

String returns the string representation

type BatchExecuteStatementRequest

type BatchExecuteStatementRequest struct {
	*aws.Request
	Input *BatchExecuteStatementInput
	Copy  func(*BatchExecuteStatementInput) BatchExecuteStatementRequest
}

BatchExecuteStatementRequest is the request type for the BatchExecuteStatement API operation.

func (BatchExecuteStatementRequest) Send

Send marshals and sends the BatchExecuteStatement API request.

type BatchExecuteStatementResponse

type BatchExecuteStatementResponse struct {
	*BatchExecuteStatementOutput
	// contains filtered or unexported fields
}

BatchExecuteStatementResponse is the response type for the BatchExecuteStatement API operation.

func (*BatchExecuteStatementResponse) SDKResponseMetdata

func (r *BatchExecuteStatementResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BatchExecuteStatement request.

type BeginTransactionInput

type BeginTransactionInput struct {
	Database *string `locationName:"database" type:"string"`

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to start a SQL transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionRequest

func (BeginTransactionInput) MarshalFields

func (s BeginTransactionInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BeginTransactionInput) String

func (s BeginTransactionInput) String() string

String returns the string representation

func (*BeginTransactionInput) Validate

func (s *BeginTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BeginTransactionOutput

type BeginTransactionOutput struct {
	TransactionId *string `locationName:"transactionId" type:"string"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to start a SQL transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionResponse

func (BeginTransactionOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BeginTransactionOutput) String

func (s BeginTransactionOutput) String() string

String returns the string representation

type BeginTransactionRequest

type BeginTransactionRequest struct {
	*aws.Request
	Input *BeginTransactionInput
	Copy  func(*BeginTransactionInput) BeginTransactionRequest
}

BeginTransactionRequest is the request type for the BeginTransaction API operation.

func (BeginTransactionRequest) Send

Send marshals and sends the BeginTransaction API request.

type BeginTransactionResponse

type BeginTransactionResponse struct {
	*BeginTransactionOutput
	// contains filtered or unexported fields
}

BeginTransactionResponse is the response type for the BeginTransaction API operation.

func (*BeginTransactionResponse) SDKResponseMetdata

func (r *BeginTransactionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BeginTransaction request.

type Client

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to AWS RDS DataService. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := rdsdata.New(myConfig)

func (*Client) BatchExecuteStatementRequest

func (c *Client) BatchExecuteStatementRequest(input *BatchExecuteStatementInput) BatchExecuteStatementRequest

BatchExecuteStatementRequest returns a request value for making API operation for AWS RDS DataService.

Runs a batch SQL statement over an array of data.

You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

// Example sending a request using BatchExecuteStatementRequest.
req := client.BatchExecuteStatementRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatement

func (*Client) BeginTransactionRequest

func (c *Client) BeginTransactionRequest(input *BeginTransactionInput) BeginTransactionRequest

BeginTransactionRequest returns a request value for making API operation for AWS RDS DataService.

Starts a SQL transaction.

A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.

A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.

DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate ExecuteStatement call with continueAfterTimeout enabled.

// Example sending a request using BeginTransactionRequest.
req := client.BeginTransactionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransaction

func (*Client) CommitTransactionRequest

func (c *Client) CommitTransactionRequest(input *CommitTransactionInput) CommitTransactionRequest

CommitTransactionRequest returns a request value for making API operation for AWS RDS DataService.

Ends a SQL transaction started with the BeginTransaction operation and commits the changes.

// Example sending a request using CommitTransactionRequest.
req := client.CommitTransactionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction

func (*Client) ExecuteSqlRequest

func (c *Client) ExecuteSqlRequest(input *ExecuteSqlInput) ExecuteSqlRequest

ExecuteSqlRequest returns a request value for making API operation for AWS RDS DataService.

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

// Example sending a request using ExecuteSqlRequest.
req := client.ExecuteSqlRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql

func (*Client) ExecuteStatementRequest

func (c *Client) ExecuteStatementRequest(input *ExecuteStatementInput) ExecuteStatementRequest

ExecuteStatementRequest returns a request value for making API operation for AWS RDS DataService.

Runs a SQL statement against a database.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

The response size limit is 1 MB or 1,000 records. If the call returns more than 1 MB of response data or over 1,000 records, the call is terminated.

// Example sending a request using ExecuteStatementRequest.
req := client.ExecuteStatementRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatement

func (*Client) RollbackTransactionRequest

func (c *Client) RollbackTransactionRequest(input *RollbackTransactionInput) RollbackTransactionRequest

RollbackTransactionRequest returns a request value for making API operation for AWS RDS DataService.

Performs a rollback of a transaction. Rolling back a transaction cancels its changes.

// Example sending a request using RollbackTransactionRequest.
req := client.RollbackTransactionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction

type ColumnMetadata

type ColumnMetadata struct {
	ArrayBaseColumnType *int64 `locationName:"arrayBaseColumnType" type:"integer"`

	IsAutoIncrement *bool `locationName:"isAutoIncrement" type:"boolean"`

	IsCaseSensitive *bool `locationName:"isCaseSensitive" type:"boolean"`

	IsCurrency *bool `locationName:"isCurrency" type:"boolean"`

	IsSigned *bool `locationName:"isSigned" type:"boolean"`

	Label *string `locationName:"label" type:"string"`

	Name *string `locationName:"name" type:"string"`

	Nullable *int64 `locationName:"nullable" type:"integer"`

	Precision *int64 `locationName:"precision" type:"integer"`

	Scale *int64 `locationName:"scale" type:"integer"`

	SchemaName *string `locationName:"schemaName" type:"string"`

	TableName *string `locationName:"tableName" type:"string"`

	Type *int64 `locationName:"type" type:"integer"`

	TypeName *string `locationName:"typeName" type:"string"`
	// contains filtered or unexported fields
}

Contains the metadata for a column. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ColumnMetadata

func (ColumnMetadata) MarshalFields

func (s ColumnMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ColumnMetadata) String

func (s ColumnMetadata) String() string

String returns the string representation

type CommitTransactionInput

type CommitTransactionInput struct {

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// TransactionId is a required field
	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a commit transaction request. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionRequest

func (CommitTransactionInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CommitTransactionInput) String

func (s CommitTransactionInput) String() string

String returns the string representation

func (*CommitTransactionInput) Validate

func (s *CommitTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CommitTransactionOutput

type CommitTransactionOutput struct {
	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
	// contains filtered or unexported fields
}

The response elements represent the output of a commit transaction request. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionResponse

func (CommitTransactionOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CommitTransactionOutput) String

func (s CommitTransactionOutput) String() string

String returns the string representation

type CommitTransactionRequest

type CommitTransactionRequest struct {
	*aws.Request
	Input *CommitTransactionInput
	Copy  func(*CommitTransactionInput) CommitTransactionRequest
}

CommitTransactionRequest is the request type for the CommitTransaction API operation.

func (CommitTransactionRequest) Send

Send marshals and sends the CommitTransaction API request.

type CommitTransactionResponse

type CommitTransactionResponse struct {
	*CommitTransactionOutput
	// contains filtered or unexported fields
}

CommitTransactionResponse is the response type for the CommitTransaction API operation.

func (*CommitTransactionResponse) SDKResponseMetdata

func (r *CommitTransactionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CommitTransaction request.

type ExecuteSqlInput

type ExecuteSqlInput struct {

	// AwsSecretStoreArn is a required field
	AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string" required:"true"`

	Database *string `locationName:"database" type:"string"`

	// DbClusterOrInstanceArn is a required field
	DbClusterOrInstanceArn *string `locationName:"dbClusterOrInstanceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SqlStatements is a required field
	SqlStatements *string `locationName:"sqlStatements" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to run one or more SQL statements. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSqlRequest

func (ExecuteSqlInput) MarshalFields

func (s ExecuteSqlInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteSqlInput) String

func (s ExecuteSqlInput) String() string

String returns the string representation

func (*ExecuteSqlInput) Validate

func (s *ExecuteSqlInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExecuteSqlOutput

type ExecuteSqlOutput struct {
	SqlStatementResults []SqlStatementResult `locationName:"sqlStatementResults" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to run one or more SQL statements. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSqlResponse

func (ExecuteSqlOutput) MarshalFields

func (s ExecuteSqlOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteSqlOutput) String

func (s ExecuteSqlOutput) String() string

String returns the string representation

type ExecuteSqlRequest

type ExecuteSqlRequest struct {
	*aws.Request
	Input *ExecuteSqlInput
	Copy  func(*ExecuteSqlInput) ExecuteSqlRequest
}

ExecuteSqlRequest is the request type for the ExecuteSql API operation.

func (ExecuteSqlRequest) Send

Send marshals and sends the ExecuteSql API request.

type ExecuteSqlResponse

type ExecuteSqlResponse struct {
	*ExecuteSqlOutput
	// contains filtered or unexported fields
}

ExecuteSqlResponse is the response type for the ExecuteSql API operation.

func (*ExecuteSqlResponse) SDKResponseMetdata

func (r *ExecuteSqlResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExecuteSql request.

type ExecuteStatementInput

type ExecuteStatementInput struct {
	ContinueAfterTimeout *bool `locationName:"continueAfterTimeout" type:"boolean"`

	Database *string `locationName:"database" type:"string"`

	IncludeResultMetadata *bool `locationName:"includeResultMetadata" type:"boolean"`

	Parameters []SqlParameter `locationName:"parameters" type:"list"`

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// Sql is a required field
	Sql *string `locationName:"sql" type:"string" required:"true"`

	TransactionId *string `locationName:"transactionId" type:"string"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to run a SQL statement against a database. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementRequest

func (ExecuteStatementInput) MarshalFields

func (s ExecuteStatementInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteStatementInput) String

func (s ExecuteStatementInput) String() string

String returns the string representation

func (*ExecuteStatementInput) Validate

func (s *ExecuteStatementInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExecuteStatementOutput

type ExecuteStatementOutput struct {
	ColumnMetadata []ColumnMetadata `locationName:"columnMetadata" type:"list"`

	GeneratedFields []Field `locationName:"generatedFields" type:"list"`

	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`

	Records [][]Field `locationName:"records" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to run a SQL statement against a database. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementResponse

func (ExecuteStatementOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteStatementOutput) String

func (s ExecuteStatementOutput) String() string

String returns the string representation

type ExecuteStatementRequest

type ExecuteStatementRequest struct {
	*aws.Request
	Input *ExecuteStatementInput
	Copy  func(*ExecuteStatementInput) ExecuteStatementRequest
}

ExecuteStatementRequest is the request type for the ExecuteStatement API operation.

func (ExecuteStatementRequest) Send

Send marshals and sends the ExecuteStatement API request.

type ExecuteStatementResponse

type ExecuteStatementResponse struct {
	*ExecuteStatementOutput
	// contains filtered or unexported fields
}

ExecuteStatementResponse is the response type for the ExecuteStatement API operation.

func (*ExecuteStatementResponse) SDKResponseMetdata

func (r *ExecuteStatementResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExecuteStatement request.

type Field

type Field struct {

	// BlobValue is automatically base64 encoded/decoded by the SDK.
	BlobValue []byte `locationName:"blobValue" type:"blob"`

	BooleanValue *bool `locationName:"booleanValue" type:"boolean"`

	DoubleValue *float64 `locationName:"doubleValue" type:"double"`

	IsNull *bool `locationName:"isNull" type:"boolean"`

	LongValue *int64 `locationName:"longValue" type:"long"`

	StringValue *string `locationName:"stringValue" type:"string"`
	// contains filtered or unexported fields
}

Contains a value. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Field

func (Field) MarshalFields

func (s Field) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Field) String

func (s Field) String() string

String returns the string representation

type Record

type Record struct {
	Values []Value `locationName:"values" type:"list"`
	// contains filtered or unexported fields
}

A record returned by a call. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Record

func (Record) MarshalFields

func (s Record) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Record) String

func (s Record) String() string

String returns the string representation

type ResultFrame

type ResultFrame struct {
	Records []Record `locationName:"records" type:"list"`

	// The metadata of the result set returned by a SQL statement.
	ResultSetMetadata *ResultSetMetadata `locationName:"resultSetMetadata" type:"structure"`
	// contains filtered or unexported fields
}

The result set returned by a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultFrame

func (ResultFrame) MarshalFields

func (s ResultFrame) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ResultFrame) String

func (s ResultFrame) String() string

String returns the string representation

type ResultSetMetadata

type ResultSetMetadata struct {
	ColumnCount *int64 `locationName:"columnCount" type:"long"`

	ColumnMetadata []ColumnMetadata `locationName:"columnMetadata" type:"list"`
	// contains filtered or unexported fields
}

The metadata of the result set returned by a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetMetadata

func (ResultSetMetadata) MarshalFields

func (s ResultSetMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ResultSetMetadata) String

func (s ResultSetMetadata) String() string

String returns the string representation

type RollbackTransactionInput

type RollbackTransactionInput struct {

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// TransactionId is a required field
	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to perform a rollback of a transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionRequest

func (RollbackTransactionInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RollbackTransactionInput) String

func (s RollbackTransactionInput) String() string

String returns the string representation

func (*RollbackTransactionInput) Validate

func (s *RollbackTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RollbackTransactionOutput

type RollbackTransactionOutput struct {
	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to perform a rollback of a transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionResponse

func (RollbackTransactionOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RollbackTransactionOutput) String

func (s RollbackTransactionOutput) String() string

String returns the string representation

type RollbackTransactionRequest

type RollbackTransactionRequest struct {
	*aws.Request
	Input *RollbackTransactionInput
	Copy  func(*RollbackTransactionInput) RollbackTransactionRequest
}

RollbackTransactionRequest is the request type for the RollbackTransaction API operation.

func (RollbackTransactionRequest) Send

Send marshals and sends the RollbackTransaction API request.

type RollbackTransactionResponse

type RollbackTransactionResponse struct {
	*RollbackTransactionOutput
	// contains filtered or unexported fields
}

RollbackTransactionResponse is the response type for the RollbackTransaction API operation.

func (*RollbackTransactionResponse) SDKResponseMetdata

func (r *RollbackTransactionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RollbackTransaction request.

type SqlParameter

type SqlParameter struct {
	Name *string `locationName:"name" type:"string"`

	// Contains a value.
	Value *Field `locationName:"value" type:"structure"`
	// contains filtered or unexported fields
}

A parameter used in a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlParameter

func (SqlParameter) MarshalFields

func (s SqlParameter) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SqlParameter) String

func (s SqlParameter) String() string

String returns the string representation

type SqlStatementResult

type SqlStatementResult struct {
	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`

	// The result set returned by a SQL statement.
	ResultFrame *ResultFrame `locationName:"resultFrame" type:"structure"`
	// contains filtered or unexported fields
}

The result of a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlStatementResult

func (SqlStatementResult) MarshalFields

func (s SqlStatementResult) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SqlStatementResult) String

func (s SqlStatementResult) String() string

String returns the string representation

type StructValue

type StructValue struct {
	Attributes []Value `locationName:"attributes" type:"list"`
	// contains filtered or unexported fields
}

A structure value returned by a call. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/StructValue

func (StructValue) MarshalFields

func (s StructValue) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (StructValue) String

func (s StructValue) String() string

String returns the string representation

type UpdateResult

type UpdateResult struct {
	GeneratedFields []Field `locationName:"generatedFields" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the results of an update. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/UpdateResult

func (UpdateResult) MarshalFields

func (s UpdateResult) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdateResult) String

func (s UpdateResult) String() string

String returns the string representation

type Value

type Value struct {
	ArrayValues []Value `locationName:"arrayValues" type:"list"`

	BigIntValue *int64 `locationName:"bigIntValue" type:"long"`

	BitValue *bool `locationName:"bitValue" type:"boolean"`

	// BlobValue is automatically base64 encoded/decoded by the SDK.
	BlobValue []byte `locationName:"blobValue" type:"blob"`

	DoubleValue *float64 `locationName:"doubleValue" type:"double"`

	IntValue *int64 `locationName:"intValue" type:"integer"`

	IsNull *bool `locationName:"isNull" type:"boolean"`

	RealValue *float64 `locationName:"realValue" type:"float"`

	StringValue *string `locationName:"stringValue" type:"string"`

	// A structure value returned by a call.
	StructValue *StructValue `locationName:"structValue" type:"structure"`
	// contains filtered or unexported fields
}

Contains the value of a column. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Value

func (Value) MarshalFields

func (s Value) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Value) String

func (s Value) String() string

String returns the string representation

Source Files

api_client.go api_doc.go api_enums.go api_errors.go api_op_BatchExecuteStatement.go api_op_BeginTransaction.go api_op_CommitTransaction.go api_op_ExecuteSql.go api_op_ExecuteStatement.go api_op_RollbackTransaction.go api_types.go

Directories

PathSynopsis
service/rdsdata/rdsdataifacePackage rdsdataiface provides an interface to enable mocking the AWS RDS DataService service client for testing your code.
Version
v0.11.0
Published
Aug 23, 2019
Platform
windows/amd64
Imports
6 packages
Last checked
2 minutes ago

Tools for package owners.