Skip to content
v2.278.0

CfnDBProxyEndpointProps Struct ​

Properties for defining a CfnDBProxyEndpoint.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const cfnDBProxyEndpointProps: rds.CfnDBProxyEndpointProps = {
  dbProxyEndpointName: 'dbProxyEndpointName',
  dbProxyName: 'dbProxyName',
  vpcSubnetIds: ['vpcSubnetIds'],

  // the properties below are optional
  endpointNetworkType: 'endpointNetworkType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  targetRole: 'targetRole',
  vpcSecurityGroupIds: ['vpcSecurityGroupIds'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rds as rds

cfn_db_proxy_endpoint_props = rds.CfnDBProxyEndpointProps(
    db_proxy_endpoint_name="dbProxyEndpointName",
    db_proxy_name="dbProxyName",
    vpc_subnet_ids=["vpcSubnetIds"],

    # the properties below are optional
    endpoint_network_type="endpointNetworkType",
    tags=[rds.CfnDBProxyEndpoint.TagFormatProperty(
        key="key",
        value="value"
    )],
    target_role="targetRole",
    vpc_security_group_ids=["vpcSecurityGroupIds"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;

CfnDBProxyEndpointProps cfnDBProxyEndpointProps = CfnDBProxyEndpointProps.builder()
        .dbProxyEndpointName("dbProxyEndpointName")
        .dbProxyName("dbProxyName")
        .vpcSubnetIds(List.of("vpcSubnetIds"))

        // the properties below are optional
        .endpointNetworkType("endpointNetworkType")
        .tags(List.of(TagFormatProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .targetRole("targetRole")
        .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;

var cfnDBProxyEndpointProps = new CfnDBProxyEndpointProps {
    DbProxyEndpointName = "dbProxyEndpointName",
    DbProxyName = "dbProxyName",
    VpcSubnetIds = new [] { "vpcSubnetIds" },

    // the properties below are optional
    EndpointNetworkType = "endpointNetworkType",
    Tags = new [] { new TagFormatProperty {
        Key = "key",
        Value = "value"
    } },
    TargetRole = "targetRole",
    VpcSecurityGroupIds = new [] { "vpcSecurityGroupIds" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDBProxyEndpointProps := &CfnDBProxyEndpointProps{
	DbProxyEndpointName: jsii.String("dbProxyEndpointName"),
	DbProxyName: jsii.String("dbProxyName"),
	VpcSubnetIds: []interface{}{
		jsii.String("vpcSubnetIds"),
	},

	// the properties below are optional
	EndpointNetworkType: jsii.String("endpointNetworkType"),
	Tags: []TagFormatProperty{
		&TagFormatProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TargetRole: jsii.String("targetRole"),
	VpcSecurityGroupIds: []interface{}{
		jsii.String("vpcSecurityGroupIds"),
	},
}

Properties ​

dbProxyEndpointNamestringdb_proxy_endpoint_namestrdbProxyEndpointNameStringDbProxyEndpointNamestringDbProxyEndpointName*string required #
The name of the DB proxy endpoint to create.
dbProxyNamestringdb_proxy_namestrdbProxyNameStringDbProxyNamestringDbProxyName*string required #
The name of the DB proxy associated with the DB proxy endpoint that you create.
endpointNetworkTypeoptionalstringendpoint_network_typeoptionalstrendpointNetworkTypeoptionalStringEndpointNetworkTypeoptionalstringEndpointNetworkTypeoptional*string #
The network type of the DB proxy endpoint.
notes

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.
tagsoptionalCfnDBProxyEndpoint.TagFormatProperty[]tagsoptionaltyping.List[TagFormatProperty]tagsoptionalList<TagFormatProperty>TagsoptionalTagFormatProperty[]Tagsoptional*[]TagFormatProperty #
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
targetRoleoptionalstringtarget_roleoptionalstrtargetRoleoptionalStringTargetRoleoptionalstringTargetRoleoptional*string #
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
vpcSecurityGroupIdsoptionalstring | ISecurityGroupRef[]vpc_security_group_idsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]vpcSecurityGroupIdsoptionalList<String>VpcSecurityGroupIdsoptionalstring[]VpcSecurityGroupIdsoptional*[]interface{} #
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.

vpcSubnetIdsstring | ISubnetRef[]vpc_subnet_idstyping.List[typing.Union[str, ISubnetRef]]vpcSubnetIdsList<String>VpcSubnetIdsstring[]VpcSubnetIds*[]interface{} required #
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.