DatabaseProxyAttributes Struct
Properties that describe an existing DB Proxy.
| Source | aws-rds/lib/proxy.ts |
|---|
Example
ts
// 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 securityGroup: ec2.SecurityGroup;
const databaseProxyAttributes: rds.DatabaseProxyAttributes = {
dbProxyArn: 'dbProxyArn',
dbProxyName: 'dbProxyName',
endpoint: 'endpoint',
securityGroups: [securityGroup],
};
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_ec2 as ec2
from aws_cdk import aws_rds as rds
# security_group: ec2.SecurityGroup
database_proxy_attributes = rds.DatabaseProxyAttributes(
db_proxy_arn="dbProxyArn",
db_proxy_name="dbProxyName",
endpoint="endpoint",
security_groups=[security_group]
)
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.ec2.*;
import software.amazon.awscdk.services.rds.*;
SecurityGroup securityGroup;
DatabaseProxyAttributes databaseProxyAttributes = DatabaseProxyAttributes.builder()
.dbProxyArn("dbProxyArn")
.dbProxyName("dbProxyName")
.endpoint("endpoint")
.securityGroups(List.of(securityGroup))
.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.EC2;
using Amazon.CDK.AWS.RDS;
SecurityGroup securityGroup;
var databaseProxyAttributes = new DatabaseProxyAttributes {
DbProxyArn = "dbProxyArn",
DbProxyName = "dbProxyName",
Endpoint = "endpoint",
SecurityGroups = new [] { securityGroup }
};
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"
import "github.com/aws/aws-cdk-go/awscdk"
var securityGroup SecurityGroup
databaseProxyAttributes := &DatabaseProxyAttributes{
DbProxyArn: jsii.String("dbProxyArn"),
DbProxyName: jsii.String("dbProxyName"),
Endpoint: jsii.String("endpoint"),
SecurityGroups: []ISecurityGroup{
securityGroup,
},
}
Properties
DB Proxy ARN.
DB Proxy Name.
Endpoint.
securityGroupsISecurityGroup[]security_groupstyping.List[ISecurityGroup]securityGroupsList<ISecurityGroup>SecurityGroupsISecurityGroup[]SecurityGroups*[]ISecurityGroup required #The security groups of the instance.