Skip to content
v2.278.0

SubnetGroupReference Struct ​

A reference to a SubnetGroup resource.

Example ​

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
# 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
// 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();
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"
};
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 ​

subnetGroupArnstringsubnet_group_arnstrsubnetGroupArnStringSubnetGroupArnstringSubnetGroupArn*string required #
The ARN of the SubnetGroup resource.
subnetGroupNamestringsubnet_group_namestrsubnetGroupNameStringSubnetGroupNamestringSubnetGroupName*string required #
The SubnetGroupName of the SubnetGroup resource.