# DBSubnetGroupReference

A reference to a DBSubnetGroup resource.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as interfaces_rds } from 'aws-cdk-lib/interfaces';
const dBSubnetGroupReference: interfaces_rds.DBSubnetGroupReference = {
  dbSubnetGroupArn: 'dbSubnetGroupArn',
  dbSubnetGroupName: 'dbSubnetGroupName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_rds as interfaces_rds

d_b_subnet_group_reference = interfaces_rds.DBSubnetGroupReference(
    db_subnet_group_arn="dbSubnetGroupArn",
    db_subnet_group_name="dbSubnetGroupName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.rds.*;

DBSubnetGroupReference dBSubnetGroupReference = DBSubnetGroupReference.builder()
        .dbSubnetGroupArn("dbSubnetGroupArn")
        .dbSubnetGroupName("dbSubnetGroupName")
        .build();
```

C# / .NET:

```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.Interfaces.RDS;

var dBSubnetGroupReference = new DBSubnetGroupReference {
    DbSubnetGroupArn = "dbSubnetGroupArn",
    DbSubnetGroupName = "dbSubnetGroupName"
};
```

Golang:

```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"

dBSubnetGroupReference := &DBSubnetGroupReference{
	DbSubnetGroupArn: jsii.String("dbSubnetGroupArn"),
	DbSubnetGroupName: jsii.String("dbSubnetGroupName"),
}
```

## Properties

- `dbSubnetGroupArn`: string (required) — The ARN of the DBSubnetGroup resource.

- `dbSubnetGroupName`: string (required) — The DBSubnetGroupName of the DBSubnetGroup resource.
