@Generated(value="software.amazon.awssdk:codegen") public final class DBProxy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DBProxy.Builder,DBProxy>
The data structure representing a proxy managed by the RDS Proxy.
This data type is used as a response element in the DescribeDBProxies
action.
Modifier and Type | Class and Description |
---|---|
static interface |
DBProxy.Builder |
Modifier and Type | Method and Description |
---|---|
List<UserAuthConfigInfo> |
auth()
One or more data structures specifying the authorization mechanism to connect to the associated RDS DB instance
or Aurora DB cluster.
|
static DBProxy.Builder |
builder() |
Instant |
createdDate()
The date and time when the proxy was first created.
|
String |
dbProxyArn()
The Amazon Resource Name (ARN) for the proxy.
|
String |
dbProxyName()
The identifier for the proxy.
|
Boolean |
debugLogging()
Whether the proxy includes detailed information about SQL statements in its logs.
|
String |
endpoint()
The endpoint that you can use to connect to the DB proxy.
|
String |
engineFamily()
The engine family applies to MySQL and PostgreSQL for both RDS and Aurora.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAuth()
For responses, this returns true if the service returned a value for the Auth property.
|
int |
hashCode() |
boolean |
hasVpcSecurityGroupIds()
For responses, this returns true if the service returned a value for the VpcSecurityGroupIds property.
|
boolean |
hasVpcSubnetIds()
For responses, this returns true if the service returned a value for the VpcSubnetIds property.
|
Integer |
idleClientTimeout()
The number of seconds a connection to the proxy can have no activity before the proxy drops the client
connection.
|
Boolean |
requireTLS()
Indicates whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
|
String |
roleArn()
The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon Secrets Manager.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DBProxy.Builder> |
serializableBuilderClass() |
DBProxyStatus |
status()
The current status of this proxy.
|
String |
statusAsString()
The current status of this proxy.
|
DBProxy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedDate()
The date and time when the proxy was last updated.
|
String |
vpcId()
Provides the VPC ID of the DB proxy.
|
List<String> |
vpcSecurityGroupIds()
Provides a list of VPC security groups that the proxy belongs to.
|
List<String> |
vpcSubnetIds()
The EC2 subnet IDs for the proxy.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String dbProxyName()
The identifier for the proxy. This name must be unique for all proxies owned by your Amazon Web Services account in the specified Amazon Web Services Region.
public final String dbProxyArn()
The Amazon Resource Name (ARN) for the proxy.
public final DBProxyStatus status()
The current status of this proxy. A status of available
means the proxy is ready to handle requests.
Other values indicate that you must wait for the proxy to be ready, or take some action to resolve an issue.
If the service returns an enum value that is not available in the current SDK version, status
will
return DBProxyStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
available
means the proxy is ready to handle
requests. Other values indicate that you must wait for the proxy to be ready, or take some action to
resolve an issue.DBProxyStatus
public final String statusAsString()
The current status of this proxy. A status of available
means the proxy is ready to handle requests.
Other values indicate that you must wait for the proxy to be ready, or take some action to resolve an issue.
If the service returns an enum value that is not available in the current SDK version, status
will
return DBProxyStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
available
means the proxy is ready to handle
requests. Other values indicate that you must wait for the proxy to be ready, or take some action to
resolve an issue.DBProxyStatus
public final String engineFamily()
The engine family applies to MySQL and PostgreSQL for both RDS and Aurora.
public final String vpcId()
Provides the VPC ID of the DB proxy.
public final boolean hasVpcSecurityGroupIds()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> vpcSecurityGroupIds()
Provides a list of VPC security groups that the proxy belongs to.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasVpcSecurityGroupIds()
method.
public final boolean hasVpcSubnetIds()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> vpcSubnetIds()
The EC2 subnet IDs for the proxy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasVpcSubnetIds()
method.
public final boolean hasAuth()
isEmpty()
method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<UserAuthConfigInfo> auth()
One or more data structures specifying the authorization mechanism to connect to the associated RDS DB instance or Aurora DB cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAuth()
method.
public final String roleArn()
The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon Secrets Manager.
public final String endpoint()
The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection string for a database client application.
public final Boolean requireTLS()
Indicates whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
public final Integer idleClientTimeout()
The number of seconds a connection to the proxy can have no activity before the proxy drops the client connection. The proxy keeps the underlying database connection open and puts it back into the connection pool for reuse by later connection requests.
Default: 1800 (30 minutes)
Constraints: 1 to 28,800
Default: 1800 (30 minutes)
Constraints: 1 to 28,800
public final Boolean debugLogging()
Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs.
public final Instant createdDate()
The date and time when the proxy was first created.
public final Instant updatedDate()
The date and time when the proxy was last updated.
public DBProxy.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<DBProxy.Builder,DBProxy>
public static DBProxy.Builder builder()
public static Class<? extends DBProxy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.