Interface CfnSubnetGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSubnetGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:05.746Z")
@Stability(Stable)
public interface CfnSubnetGroupProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnSubnetGroup.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticache.*;
CfnSubnetGroupProps cfnSubnetGroupProps = CfnSubnetGroupProps.builder()
.description("description")
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.cacheSubnetGroupName("cacheSubnetGroupName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSubnetGroupPropsstatic final classAn implementation forCfnSubnetGroupProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSubnetGroupProps.Builderbuilder()default StringThe name for the cache subnet group.The description for the cache subnet group.The EC2 subnet IDs for the cache subnet group.getTags()A tag that can be added to an ElastiCache subnet group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
The description for the cache subnet group.- See Also:
-
getSubnetIds
The EC2 subnet IDs for the cache subnet group.- See Also:
-
getCacheSubnetGroupName
The name for the cache subnet group. This value is stored as a lowercase string.Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup- See Also:
-
getTags
A tag that can be added to an ElastiCache subnet group.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.
- See Also:
-
builder
- Returns:
- a
CfnSubnetGroupProps.BuilderofCfnSubnetGroupProps
-