interface DatabaseProxyEndpointProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.DatabaseProxyEndpointProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#DatabaseProxyEndpointProps |
![]() | software.amazon.awscdk.services.rds.DatabaseProxyEndpointProps |
![]() | aws_cdk.aws_rds.DatabaseProxyEndpointProps |
![]() | aws-cdk-lib » aws_rds » DatabaseProxyEndpointProps |
Construction properties for a DatabaseProxyEndpoint.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_rds as rds } from 'aws-cdk-lib';
declare const databaseProxy: rds.DatabaseProxy;
declare const securityGroup: ec2.SecurityGroup;
declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpc: ec2.Vpc;
const databaseProxyEndpointProps: rds.DatabaseProxyEndpointProps = {
dbProxy: databaseProxy,
vpc: vpc,
// the properties below are optional
dbProxyEndpointName: 'dbProxyEndpointName',
securityGroups: [securityGroup],
targetRole: rds.ProxyEndpointTargetRole.READ_WRITE,
vpcSubnets: {
availabilityZones: ['availabilityZones'],
onePerAz: false,
subnetFilters: [subnetFilter],
subnetGroupName: 'subnetGroupName',
subnets: [subnet],
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
},
};
Properties
Name | Type | Description |
---|---|---|
db | IDatabase | The DB proxy associated with the DB proxy endpoint. |
vpc | IVpc | The VPC of the DB proxy endpoint. |
db | string | The name of the DB proxy endpoint. |
security | ISecurity [] | The VPC security groups to associate with the new proxy endpoint. |
target | Proxy | A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. |
vpc | Subnet | The subnets of DB proxy endpoint. |
dbProxy
Type:
IDatabase
The DB proxy associated with the DB proxy endpoint.
vpc
Type:
IVpc
The VPC of the DB proxy endpoint.
dbProxyEndpointName?
Type:
string
(optional, default: a CDK generated name)
The name of the DB proxy endpoint.
securityGroups?
Type:
ISecurity
[]
(optional, default: Default security group for the VPC)
The VPC security groups to associate with the new proxy endpoint.
targetRole?
Type:
Proxy
(optional, default: ProxyEndpointTargetRole.READ_WRITE)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
vpcSubnets?
Type:
Subnet
(optional, default: the VPC default strategy if not specified.)
The subnets of DB proxy endpoint.