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
3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 | |