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.Builderdescription(String description) A description for the cache security group.A tag that can be added to an ElastiCache security group.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- 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
-
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
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityGroup>- Returns:
- a newly built instance of
CfnSecurityGroup.
-