Class CfnSecurityGroup.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnSecurityGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityGroup>
- Enclosing class:
CfnSecurityGroup
@Stability(Stable)
public static final class CfnSecurityGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityGroup>
A fluent builder for
CfnSecurityGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnSecurityGroup.Builder
description
(String description) A description for the cache security group.A tag that can be added to an ElastiCache security group.
-
Method Details
-
create
@Stability(Stable) public static CfnSecurityGroup.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
CfnSecurityGroup.Builder
.
-
description
A description for the cache security group.- Parameters:
description
- A description for the cache security group. This parameter is required.- Returns:
this
- See Also:
-
tags
A tag that can be added to an ElastiCache security group.Tags are composed of a Key/Value pair. You can use tags to categorize and track all your security groups. A tag with a null Value is permitted.
- Parameters:
tags
- A tag that can be added to an ElastiCache security group. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityGroup>
- Returns:
- a newly built instance of
CfnSecurityGroup
.
-