Class DBProxy
- java.lang.Object
-
- software.amazon.awssdk.services.rds.model.DBProxy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DBProxy.Builder,DBProxy>
@Generated("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
DescribeDBProxiesaction.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDBProxy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.Builderbuilder()InstantcreatedDate()The date and time when the proxy was first created.StringdbProxyArn()The Amazon Resource Name (ARN) for the proxy.StringdbProxyName()The identifier for the proxy.BooleandebugLogging()Specifies whether the proxy logs detailed connection and query information.StringdefaultAuthScheme()The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database.Stringendpoint()The endpoint that you can use to connect to the DB proxy.EndpointNetworkTypeendpointNetworkType()The network type of the DB proxy endpoint.StringendpointNetworkTypeAsString()The network type of the DB proxy endpoint.StringengineFamily()The kinds of databases that the proxy can connect to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAuth()For responses, this returns true if the service returned a value for the Auth property.inthashCode()booleanhasVpcSecurityGroupIds()For responses, this returns true if the service returned a value for the VpcSecurityGroupIds property.booleanhasVpcSubnetIds()For responses, this returns true if the service returned a value for the VpcSubnetIds property.IntegeridleClientTimeout()The number of seconds a connection to the proxy can have no activity before the proxy drops the client connection.BooleanrequireTLS()Indicates whether Transport Layer Security (TLS) encryption is required for connections to the proxy.StringroleArn()The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon Secrets Manager.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DBProxy.Builder>serializableBuilderClass()DBProxyStatusstatus()The current status of this proxy.StringstatusAsString()The current status of this proxy.TargetConnectionNetworkTypetargetConnectionNetworkType()The network type that the proxy uses to connect to the target database.StringtargetConnectionNetworkTypeAsString()The network type that the proxy uses to connect to the target database.DBProxy.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedDate()The date and time when the proxy was last updated.StringvpcId()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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dbProxyName
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.
- Returns:
- 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.
-
dbProxyArn
public final String dbProxyArn()
The Amazon Resource Name (ARN) for the proxy.
- Returns:
- The Amazon Resource Name (ARN) for the proxy.
-
status
public final DBProxyStatus status()
The current status of this proxy. A status of
availablemeans 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,
statuswill returnDBProxyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of this proxy. A status of
availablemeans 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. - See Also:
DBProxyStatus
-
statusAsString
public final String statusAsString()
The current status of this proxy. A status of
availablemeans 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,
statuswill returnDBProxyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of this proxy. A status of
availablemeans 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. - See Also:
DBProxyStatus
-
engineFamily
public final String engineFamily()
The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database.
MYSQLsupports Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases.POSTGRESQLsupports Aurora PostgreSQL and RDS for PostgreSQL databases.SQLSERVERsupports RDS for Microsoft SQL Server databases.- Returns:
- The kinds of databases that the proxy can connect to. This value determines which database network
protocol the proxy recognizes when it interprets network traffic to and from the database.
MYSQLsupports Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases.POSTGRESQLsupports Aurora PostgreSQL and RDS for PostgreSQL databases.SQLSERVERsupports RDS for Microsoft SQL Server databases.
-
vpcId
public final String vpcId()
Provides the VPC ID of the DB proxy.
- Returns:
- Provides the VPC ID of the DB proxy.
-
hasVpcSecurityGroupIds
public final boolean hasVpcSecurityGroupIds()
For responses, this returns true if the service returned a value for the VpcSecurityGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
vpcSecurityGroupIds
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.- Returns:
- Provides a list of VPC security groups that the proxy belongs to.
-
hasVpcSubnetIds
public final boolean hasVpcSubnetIds()
For responses, this returns true if the service returned a value for the VpcSubnetIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
vpcSubnetIds
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.- Returns:
- The EC2 subnet IDs for the proxy.
-
defaultAuthScheme
public final String defaultAuthScheme()
The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database. Valid values are
NONEandIAM_AUTH. When set toIAM_AUTH, the proxy uses end-to-end IAM authentication to connect to the database.- Returns:
- The default authentication scheme that the proxy uses for client connections to the proxy and connections
from the proxy to the underlying database. Valid values are
NONEandIAM_AUTH. When set toIAM_AUTH, the proxy uses end-to-end IAM authentication to connect to the database.
-
hasAuth
public final boolean hasAuth()
For responses, this returns true if the service returned a value for the Auth property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
auth
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.- Returns:
- One or more data structures specifying the authorization mechanism to connect to the associated RDS DB instance or Aurora DB cluster.
-
roleArn
public final String roleArn()
The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon Secrets Manager.
- Returns:
- The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon Secrets Manager.
-
endpoint
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.
- Returns:
- 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.
-
requireTLS
public final Boolean requireTLS()
Indicates whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
- Returns:
- Indicates whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
-
idleClientTimeout
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
- Returns:
- 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
-
debugLogging
public final Boolean debugLogging()
Specifies whether the proxy logs detailed connection and query information. When you enable
DebugLogging, the proxy captures connection details and connection pool behavior from your queries. Debug logging increases CloudWatch costs and can impact proxy performance. Enable this option only when you need to troubleshoot connection or performance issues.- Returns:
- Specifies whether the proxy logs detailed connection and query information. When you enable
DebugLogging, the proxy captures connection details and connection pool behavior from your queries. Debug logging increases CloudWatch costs and can impact proxy performance. Enable this option only when you need to troubleshoot connection or performance issues.
-
createdDate
public final Instant createdDate()
The date and time when the proxy was first created.
- Returns:
- The date and time when the proxy was first created.
-
updatedDate
public final Instant updatedDate()
The date and time when the proxy was last updated.
- Returns:
- The date and time when the proxy was last updated.
-
endpointNetworkType
public final EndpointNetworkType endpointNetworkType()
The network type of the DB proxy endpoint. The network type determines the IP version that the proxy endpoint supports.
Valid values:
-
IPV4- The proxy endpoint supports IPv4 only. -
IPV6- The proxy endpoint supports IPv6 only. -
DUAL- The proxy endpoint supports both IPv4 and IPv6.
If the service returns an enum value that is not available in the current SDK version,
endpointNetworkTypewill returnEndpointNetworkType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromendpointNetworkTypeAsString().- Returns:
- The network type of the DB proxy endpoint. The network type determines the IP version that the proxy
endpoint supports.
Valid values:
-
IPV4- The proxy endpoint supports IPv4 only. -
IPV6- The proxy endpoint supports IPv6 only. -
DUAL- The proxy endpoint supports both IPv4 and IPv6.
-
- See Also:
EndpointNetworkType
-
-
endpointNetworkTypeAsString
public final String endpointNetworkTypeAsString()
The network type of the DB proxy endpoint. The network type determines the IP version that the proxy endpoint supports.
Valid values:
-
IPV4- The proxy endpoint supports IPv4 only. -
IPV6- The proxy endpoint supports IPv6 only. -
DUAL- The proxy endpoint supports both IPv4 and IPv6.
If the service returns an enum value that is not available in the current SDK version,
endpointNetworkTypewill returnEndpointNetworkType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromendpointNetworkTypeAsString().- Returns:
- The network type of the DB proxy endpoint. The network type determines the IP version that the proxy
endpoint supports.
Valid values:
-
IPV4- The proxy endpoint supports IPv4 only. -
IPV6- The proxy endpoint supports IPv6 only. -
DUAL- The proxy endpoint supports both IPv4 and IPv6.
-
- See Also:
EndpointNetworkType
-
-
targetConnectionNetworkType
public final TargetConnectionNetworkType targetConnectionNetworkType()
The network type that the proxy uses to connect to the target database. The network type determines the IP version that the proxy uses for connections to the database.
Valid values:
-
IPV4- The proxy connects to the database using IPv4 only. -
IPV6- The proxy connects to the database using IPv6 only.
If the service returns an enum value that is not available in the current SDK version,
targetConnectionNetworkTypewill returnTargetConnectionNetworkType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetConnectionNetworkTypeAsString().- Returns:
- The network type that the proxy uses to connect to the target database. The network type determines the
IP version that the proxy uses for connections to the database.
Valid values:
-
IPV4- The proxy connects to the database using IPv4 only. -
IPV6- The proxy connects to the database using IPv6 only.
-
- See Also:
TargetConnectionNetworkType
-
-
targetConnectionNetworkTypeAsString
public final String targetConnectionNetworkTypeAsString()
The network type that the proxy uses to connect to the target database. The network type determines the IP version that the proxy uses for connections to the database.
Valid values:
-
IPV4- The proxy connects to the database using IPv4 only. -
IPV6- The proxy connects to the database using IPv6 only.
If the service returns an enum value that is not available in the current SDK version,
targetConnectionNetworkTypewill returnTargetConnectionNetworkType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetConnectionNetworkTypeAsString().- Returns:
- The network type that the proxy uses to connect to the target database. The network type determines the
IP version that the proxy uses for connections to the database.
Valid values:
-
IPV4- The proxy connects to the database using IPv4 only. -
IPV6- The proxy connects to the database using IPv6 only.
-
- See Also:
TargetConnectionNetworkType
-
-
toBuilder
public DBProxy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DBProxy.Builder,DBProxy>
-
builder
public static DBProxy.Builder builder()
-
serializableBuilderClass
public static Class<? extends DBProxy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-