AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ExecuteSqlInput

import "github.com/aws/aws-sdk-go/service/rdsdataservice"

type ExecuteSqlInput struct { AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string" required:"true"` Database *string `locationName:"database" type:"string"` DbClusterOrInstanceArn *string `locationName:"dbClusterOrInstanceArn" type:"string" required:"true"` Schema *string `locationName:"schema" type:"string"` SqlStatements *string `locationName:"sqlStatements" type:"string" required:"true"` }

Execute SQL Request

AwsSecretStoreArn

Type: *string

ARN of the db credentials in AWS Secret Store or the friendly secret name

AwsSecretStoreArn is a required field

Database

Type: *string

Target DB name

DbClusterOrInstanceArn

Type: *string

ARN of the target db cluster or instance

DbClusterOrInstanceArn is a required field

Schema

Type: *string

Target Schema name

SqlStatements

Type: *string

SQL statement(s) to be executed. Statements can be chained by using semicolons

SqlStatements is a required field

Method

GoString

func (s ExecuteSqlInput) GoString() string

GoString returns the string representation

SetAwsSecretStoreArn

func (s *ExecuteSqlInput) SetAwsSecretStoreArn(v string) *ExecuteSqlInput

SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value.

SetDatabase

func (s *ExecuteSqlInput) SetDatabase(v string) *ExecuteSqlInput

SetDatabase sets the Database field's value.

SetDbClusterOrInstanceArn

func (s *ExecuteSqlInput) SetDbClusterOrInstanceArn(v string) *ExecuteSqlInput

SetDbClusterOrInstanceArn sets the DbClusterOrInstanceArn field's value.

SetSchema

func (s *ExecuteSqlInput) SetSchema(v string) *ExecuteSqlInput

SetSchema sets the Schema field's value.

SetSqlStatements

func (s *ExecuteSqlInput) SetSqlStatements(v string) *ExecuteSqlInput

SetSqlStatements sets the SqlStatements field's value.

String

func (s ExecuteSqlInput) String() string

String returns the string representation

Validate

func (s *ExecuteSqlInput) Validate() error

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

On this page: