Class CfnSubnetGroupProps
Properties for defining a CfnSubnetGroup.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ElastiCache
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSubnetGroupProps : ICfnSubnetGroupProps
Syntax (vb)
Public Class CfnSubnetGroupProps Implements ICfnSubnetGroupProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElastiCache;
var cfnSubnetGroupProps = new CfnSubnetGroupProps {
Description = "description",
SubnetIds = new [] { "subnetIds" },
// the properties below are optional
CacheSubnetGroupName = "cacheSubnetGroupName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnSubnetGroupProps() | Properties for defining a |
Properties
| CacheSubnetGroupName | The name for the cache subnet group. This value is stored as a lowercase string. |
| Description | The description for the cache subnet group. |
| SubnetIds | The EC2 subnet IDs for the cache subnet group. |
| Tags | A tag that can be added to an ElastiCache subnet group. |
Constructors
CfnSubnetGroupProps()
Properties for defining a CfnSubnetGroup.
public CfnSubnetGroupProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElastiCache;
var cfnSubnetGroupProps = new CfnSubnetGroupProps {
Description = "description",
SubnetIds = new [] { "subnetIds" },
// the properties below are optional
CacheSubnetGroupName = "cacheSubnetGroupName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
CacheSubnetGroupName
The name for the cache subnet group. This value is stored as a lowercase string.
public string? CacheSubnetGroupName { get; set; }
Property Value
Remarks
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example: mysubnetgroup
Description
The description for the cache subnet group.
public string Description { get; set; }
Property Value
Remarks
SubnetIds
The EC2 subnet IDs for the cache subnet group.
public object[] SubnetIds { get; set; }
Property Value
object[]
Remarks
Type union: (either string or ISubnetRef)[]
Tags
A tag that can be added to an ElastiCache subnet group.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.