create_db_proxy
async
¶
create_db_proxy(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_proxy_name: Optional[DBProxyName] = None,
engine_family: Optional[EngineFamily] = None,
default_auth_scheme: Optional[DefaultAuthScheme] = None,
auth: Optional[UserAuthConfigList] = None,
role_arn: Optional[Arn] = None,
vpc_subnet_ids: Optional[StringList] = None,
vpc_security_group_ids: Optional[StringList] = None,
require_tls: Optional[Boolean] = None,
idle_client_timeout: Optional[IntegerOptional] = None,
debug_logging: Optional[Boolean] = None,
tags: Optional[TagList] = None,
endpoint_network_type: Optional[EndpointNetworkType] = None,
target_connection_network_type: Optional[TargetConnectionNetworkType] = None,
) -> CreateDBProxyResponse
Creates a new DB proxy.
Parameters:
-
db_proxy_name(Optional[DBProxyName], default:None) –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. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
-
engine_family(Optional[EngineFamily], default:None) –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. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify
MYSQL. For Aurora PostgreSQL and RDS for PostgreSQL databases, specifyPOSTGRESQL. For RDS for Microsoft SQL Server, specifySQLSERVER. -
default_auth_scheme(Optional[DefaultAuthScheme], default:None) –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. If you don't specifyDefaultAuthSchemeor specify this parameter asNONE, you must specify theAuthoption. -
auth(Optional[UserAuthConfigList], default:None) –The authorization mechanism that the proxy uses.
-
role_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services Secrets Manager.
-
vpc_subnet_ids(Optional[StringList], default:None) –One or more VPC subnet IDs to associate with the new proxy.
-
vpc_security_group_ids(Optional[StringList], default:None) –One or more VPC security group IDs to associate with the new proxy.
-
require_tls(Optional[Boolean], default:None) –Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy.
-
idle_client_timeout(Optional[IntegerOptional], default:None) –The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database.
-
debug_logging(Optional[Boolean], default:None) –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. -
tags(Optional[TagList], default:None) –An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
-
endpoint_network_type(Optional[EndpointNetworkType], default:None) –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.
Default:
IPV4Constraints:
-
If you specify
IPV6orDUAL, the VPC and all subnets must have an IPv6 CIDR block. -
If you specify
IPV6orDUAL, the VPC tenancy cannot bededicated.
-
-
target_connection_network_type(Optional[TargetConnectionNetworkType], default:None) –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.
Default:
IPV4Constraints:
-
If you specify
IPV6, the database must support dual-stack mode. RDS doesn't support IPv6-only databases. -
All targets registered with the proxy must be compatible with the specified network type.
-
Raises:
-
DBProxyAlreadyExistsFault–The specified proxy name must be unique for all proxies owned by your Amazon Web Services account in the specified Amazon Web Services Region.
-
DBProxyQuotaExceededFault–Your Amazon Web Services account already has the maximum number of proxies in the specified Amazon Web Services Region.
-
InvalidSubnet–The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rds/_services/async_rds.py
3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 | |