Interface CfnSubnetGroupProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSubnetGroupProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.507Z") @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();
 
  • Method Details

    • getDescription

      @Stability(Stable) @NotNull String getDescription()
      The description for the cache subnet group.
    • getSubnetIds

      @Stability(Stable) @NotNull List<String> getSubnetIds()
      The EC2 subnet IDs for the cache subnet group.
    • getCacheSubnetGroupName

      @Stability(Stable) @Nullable default String 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

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> 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.

    • builder

      @Stability(Stable) static CfnSubnetGroupProps.Builder builder()
      Returns:
      a CfnSubnetGroupProps.Builder of CfnSubnetGroupProps