Class CfnSubnetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnSubnetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetGroup>
- Enclosing class:
CfnSubnetGroup
@Stability(Stable)
public static final class CfnSubnetGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetGroup>
A fluent builder for
CfnSubnetGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cacheSubnetGroupName
(String cacheSubnetGroupName) The name for the cache subnet group.static CfnSubnetGroup.Builder
description
(String description) The description for the cache subnet group.The EC2 subnet IDs for the cache subnet group.A tag that can be added to an ElastiCache subnet group.
-
Method Details
-
create
@Stability(Stable) public static CfnSubnetGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSubnetGroup.Builder
.
-
description
The description for the cache subnet group.- Parameters:
description
- The description for the cache subnet group. This parameter is required.- Returns:
this
- See Also:
-
subnetIds
The EC2 subnet IDs for the cache subnet group.- Parameters:
subnetIds
- The EC2 subnet IDs for the cache subnet group. This parameter is required.- Returns:
this
- See Also:
-
cacheSubnetGroupName
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
- Parameters:
cacheSubnetGroupName
- The name for the cache subnet group. This value is stored as a lowercase string. This parameter is required.- Returns:
this
- See Also:
-
tags
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.
- Parameters:
tags
- A tag that can be added to an ElastiCache subnet group. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSubnetGroup>
- Returns:
- a newly built instance of
CfnSubnetGroup
.
-