@Generated(value="software.amazon.awssdk:codegen") public interface RdsDataClient extends SdkClient
builder() method.
AWS RDS DataService provides Http Endpoint to query RDS databases.| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static RdsDataClientBuilder |
builder()
Create a builder that can be used to configure and create a
RdsDataClient. |
static RdsDataClient |
create()
Create a
RdsDataClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default ExecuteSqlResponse |
executeSql(Consumer<ExecuteSqlRequest.Builder> executeSqlRequest)
Executes any SQL statement on the target database synchronously
|
default ExecuteSqlResponse |
executeSql(ExecuteSqlRequest executeSqlRequest)
Executes any SQL statement on the target database synchronously
|
static ServiceMetadata |
serviceMetadata() |
serviceNameclosestatic final String SERVICE_NAME
static RdsDataClient create()
RdsDataClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static RdsDataClientBuilder builder()
RdsDataClient.default ExecuteSqlResponse executeSql(ExecuteSqlRequest executeSqlRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, ServiceUnavailableErrorException, AwsServiceException, SdkClientException, RdsDataException
executeSqlRequest - Execute SQL RequestBadRequestException - Invalid Request exceptionForbiddenException - Access denied exceptionInternalServerErrorException - Internal service errorServiceUnavailableErrorException - Internal service unavailable errorSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RdsDataException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ExecuteSqlResponse executeSql(Consumer<ExecuteSqlRequest.Builder> executeSqlRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, ServiceUnavailableErrorException, AwsServiceException, SdkClientException, RdsDataException
This is a convenience which creates an instance of the ExecuteSqlRequest.Builder avoiding the need to
create one manually via ExecuteSqlRequest.builder()
executeSqlRequest - A Consumer that will call methods on ExecuteSqlRequest.Builder to create a request.
Execute SQL RequestBadRequestException - Invalid Request exceptionForbiddenException - Access denied exceptionInternalServerErrorException - Internal service errorServiceUnavailableErrorException - Internal service unavailable errorSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RdsDataException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.