create_db_proxy_endpoint
async
¶
create_db_proxy_endpoint(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_proxy_name: Optional[DBProxyName] = None,
db_proxy_endpoint_name: Optional[DBProxyEndpointName] = None,
vpc_subnet_ids: Optional[StringList] = None,
vpc_security_group_ids: Optional[StringList] = None,
target_role: Optional[DBProxyEndpointTargetRole] = None,
tags: Optional[TagList] = None,
endpoint_network_type: Optional[EndpointNetworkType] = None,
) -> CreateDBProxyEndpointResponse
Creates a DBProxyEndpoint. Only applies to proxies that are associated with Aurora DB clusters. You can use DB proxy endpoints to specify read/write or read-only access to the DB cluster. You can also use DB proxy endpoints to access a DB proxy through a different VPC than the proxy's default VPC.
Parameters:
-
db_proxy_name(Optional[DBProxyName], default:None) –The name of the DB proxy associated with the DB proxy endpoint that you create.
-
db_proxy_endpoint_name(Optional[DBProxyEndpointName], default:None) –The name of the DB proxy endpoint to create.
-
vpc_subnet_ids(Optional[StringList], default:None) –The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than for the original DB proxy.
-
vpc_security_group_ids(Optional[StringList], default:None) –The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security group IDs than for the original DB proxy. The default is the default security group for the VPC.
-
target_role(Optional[DBProxyEndpointTargetRole], default:None) –The role of the DB proxy endpoint. The role determines whether the endpoint can be used for read/write or only read operations. The default is
READ_WRITE. The only role that proxies for RDS for Microsoft SQL Server support isREAD_WRITE. -
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.
-
Raises:
-
DBProxyEndpointAlreadyExistsFault–The specified DB proxy endpoint name must be unique for all DB proxy endpoints owned by your Amazon Web Services account in the specified Amazon Web Services Region.
-
DBProxyEndpointQuotaExceededFault–The DB proxy already has the maximum number of endpoints.
-
DBProxyNotFoundFault–The specified proxy name doesn't correspond to a proxy owned by your Amazon Web Services account in the specified Amazon Web Services Region.
-
InvalidDBProxyStateFault–The requested operation can't be performed while the proxy is in this state.
-
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
3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 | |