Skip to content
v2.274.0

ProxyEndpointTargetRole Enum ​

A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.

Example ​

ts
declare const vpc: ec2.Vpc;
declare const secrets: secretsmanager.Secret[];
declare const dbInstance: rds.DatabaseInstance;

const proxy = dbInstance.addProxy('Proxy', {
  secrets,
  vpc,
});

// Add a reader endpoint
proxy.addEndpoint('ProxyEndpoint', {
  vpc,
  targetRole: rds.ProxyEndpointTargetRole.READ_ONLY,
});

Members ​

MemberDescription
READ_WRITEThe proxy endpoint can be used for both read and write operations.
READ_ONLYThe proxy endpoint can be used only for read operations.

Referenced by ​