Interface RdsUtilities
-
public interface RdsUtilities
Utilities for working with RDS. An instance of this class can be created by:1) Using the low-level client
RdsClient.utilities()
(orRdsAsyncClient.utilities()
} method. This is recommended as SDK will use the same configuration from theRdsClient
object to create theRdsUtilities
object.RdsClient rdsClient = RdsClient.create(); RdsUtilities utilities = rdsClient.utilities();
2) Directly using the
builder()
method.RdsUtilities utilities = RdsUtilities.builder() .credentialsProvider(DefaultCredentialsProvider.create()) .region(Region.US_WEST_2) .build()
Note: This class does not make network calls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RdsUtilities.Builder
Builder for creating an instance ofRdsUtilities
.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static RdsUtilities.Builder
builder()
Create a builder that can be used to configure and create aRdsUtilities
.default String
generateAuthenticationToken(Consumer<GenerateAuthenticationTokenRequest.Builder> request)
Generates an authorization tokens for IAM authentication to an RDS database.default String
generateAuthenticationToken(GenerateAuthenticationTokenRequest request)
Generates an authorization tokens for IAM authentication to an RDS database.
-
-
-
Method Detail
-
builder
static RdsUtilities.Builder builder()
Create a builder that can be used to configure and create aRdsUtilities
.
-
generateAuthenticationToken
default String generateAuthenticationToken(Consumer<GenerateAuthenticationTokenRequest.Builder> request)
Generates an authorization tokens for IAM authentication to an RDS database.- Parameters:
request
- The request used to generate the auth token- Returns:
- String to use as the RDS auth token
- Throws:
IllegalArgumentException
- if the required parameters are not valid
-
generateAuthenticationToken
default String generateAuthenticationToken(GenerateAuthenticationTokenRequest request)
Generates an authorization tokens for IAM authentication to an RDS database.- Parameters:
request
- The request used to generate the auth token- Returns:
- String to use as the RDS auth token
- Throws:
IllegalArgumentException
- if the required parameters are not valid
-
-