# SubnetGroupReference

A reference to a SubnetGroup resource.

- Source: Generated at build time
- Type last changed: v2.231.0 · 1 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_memorydb as interfaces_memorydb } from 'aws-cdk-lib/interfaces';
const subnetGroupReference: interfaces_memorydb.SubnetGroupReference = {
  subnetGroupArn: 'subnetGroupArn',
  subnetGroupName: 'subnetGroupName',
};
```

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_memorydb as interfaces_memorydb

subnet_group_reference = interfaces_memorydb.SubnetGroupReference(
    subnet_group_arn="subnetGroupArn",
    subnet_group_name="subnetGroupName"
)
```

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.memorydb.*;

SubnetGroupReference subnetGroupReference = SubnetGroupReference.builder()
        .subnetGroupArn("subnetGroupArn")
        .subnetGroupName("subnetGroupName")
        .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.MemoryDB;

var subnetGroupReference = new SubnetGroupReference {
    SubnetGroupArn = "subnetGroupArn",
    SubnetGroupName = "subnetGroupName"
};
```

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"

subnetGroupReference := &SubnetGroupReference{
	SubnetGroupArn: jsii.String("subnetGroupArn"),
	SubnetGroupName: jsii.String("subnetGroupName"),
}
```

## Properties

- `subnetGroupArn`: string (required) — The ARN of the SubnetGroup resource.

- `subnetGroupName`: string (required) — The SubnetGroupName of the SubnetGroup resource.
