1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. memorydb
  5. SubnetGroup

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.memorydb.SubnetGroup

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

The AWS::MemoryDB::SubnetGroup resource creates an Amazon MemoryDB Subnet Group.

Create SubnetGroup Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SubnetGroup(name: string, args: SubnetGroupArgs, opts?: CustomResourceOptions);
@overload
def SubnetGroup(resource_name: str,
                args: SubnetGroupArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def SubnetGroup(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                subnet_ids: Optional[Sequence[str]] = None,
                description: Optional[str] = None,
                subnet_group_name: Optional[str] = None,
                tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewSubnetGroup(ctx *Context, name string, args SubnetGroupArgs, opts ...ResourceOption) (*SubnetGroup, error)
public SubnetGroup(string name, SubnetGroupArgs args, CustomResourceOptions? opts = null)
public SubnetGroup(String name, SubnetGroupArgs args)
public SubnetGroup(String name, SubnetGroupArgs args, CustomResourceOptions options)
type: aws-native:memorydb:SubnetGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SubnetGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SubnetGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SubnetGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SubnetGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SubnetGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

SubnetGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SubnetGroup resource accepts the following input properties:

SubnetIds This property is required. List<string>
A list of VPC subnet IDs for the subnet group.
Description string
An optional description of the subnet group.
SubnetGroupName string
The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
Tags List<Pulumi.AwsNative.Inputs.Tag>
An array of key-value pairs to apply to this subnet group.
SubnetIds This property is required. []string
A list of VPC subnet IDs for the subnet group.
Description string
An optional description of the subnet group.
SubnetGroupName string
The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
Tags TagArgs
An array of key-value pairs to apply to this subnet group.
subnetIds This property is required. List<String>
A list of VPC subnet IDs for the subnet group.
description String
An optional description of the subnet group.
subnetGroupName String
The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
tags List<Tag>
An array of key-value pairs to apply to this subnet group.
subnetIds This property is required. string[]
A list of VPC subnet IDs for the subnet group.
description string
An optional description of the subnet group.
subnetGroupName string
The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
tags Tag[]
An array of key-value pairs to apply to this subnet group.
subnet_ids This property is required. Sequence[str]
A list of VPC subnet IDs for the subnet group.
description str
An optional description of the subnet group.
subnet_group_name str
The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
tags Sequence[TagArgs]
An array of key-value pairs to apply to this subnet group.
subnetIds This property is required. List<String>
A list of VPC subnet IDs for the subnet group.
description String
An optional description of the subnet group.
subnetGroupName String
The name of the subnet group. This value must be unique as it also serves as the subnet group identifier.
tags List<Property Map>
An array of key-value pairs to apply to this subnet group.

Outputs

All input properties are implicitly available as output properties. Additionally, the SubnetGroup resource produces the following output properties:

Arn string
The Amazon Resource Name (ARN) of the subnet group.
Id string
The provider-assigned unique ID for this managed resource.
SupportedNetworkTypes List<string>
Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].
Arn string
The Amazon Resource Name (ARN) of the subnet group.
Id string
The provider-assigned unique ID for this managed resource.
SupportedNetworkTypes []string
Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].
arn String
The Amazon Resource Name (ARN) of the subnet group.
id String
The provider-assigned unique ID for this managed resource.
supportedNetworkTypes List<String>
Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].
arn string
The Amazon Resource Name (ARN) of the subnet group.
id string
The provider-assigned unique ID for this managed resource.
supportedNetworkTypes string[]
Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].
arn str
The Amazon Resource Name (ARN) of the subnet group.
id str
The provider-assigned unique ID for this managed resource.
supported_network_types Sequence[str]
Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].
arn String
The Amazon Resource Name (ARN) of the subnet group.
id String
The provider-assigned unique ID for this managed resource.
supportedNetworkTypes List<String>
Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].

Supporting Types

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi