Class CfnParameterGroup.Builder

java.lang.Object
software.amazon.awscdk.services.elasticache.CfnParameterGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnParameterGroup>
Enclosing class:
CfnParameterGroup

@Stability(Stable) public static final class CfnParameterGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnParameterGroup>
A fluent builder for CfnParameterGroup.
  • Method Details

    • create

      @Stability(Stable) public static CfnParameterGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnParameterGroup.Builder.
    • cacheParameterGroupFamily

      @Stability(Stable) public CfnParameterGroup.Builder cacheParameterGroupFamily(String cacheParameterGroupFamily)
      The name of the cache parameter group family that this cache parameter group is compatible with.

      Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.x | redis7

      Parameters:
      cacheParameterGroupFamily - The name of the cache parameter group family that this cache parameter group is compatible with. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnParameterGroup.Builder description(String description)
      The description for this cache parameter group.

      Parameters:
      description - The description for this cache parameter group. This parameter is required.
      Returns:
      this
    • properties

      @Stability(Stable) public CfnParameterGroup.Builder properties(IResolvable properties)
      A comma-delimited list of parameter name/value pairs.

      For example:

       "Properties" : { "cas_disabled" : "1", "chunk_size_growth_factor" : "1.02"
       }
       

      Parameters:
      properties - A comma-delimited list of parameter name/value pairs. This parameter is required.
      Returns:
      this
    • properties

      @Stability(Stable) public CfnParameterGroup.Builder properties(Map<String,String> properties)
      A comma-delimited list of parameter name/value pairs.

      For example:

       "Properties" : { "cas_disabled" : "1", "chunk_size_growth_factor" : "1.02"
       }
       

      Parameters:
      properties - A comma-delimited list of parameter name/value pairs. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnParameterGroup.Builder tags(List<? extends CfnTag> tags)
      A tag that can be added to an ElastiCache parameter group.

      Tags are composed of a Key/Value pair. You can use tags to categorize and track all your parameter groups. A tag with a null Value is permitted.

      Parameters:
      tags - A tag that can be added to an ElastiCache parameter group. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnParameterGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnParameterGroup>
      Returns:
      a newly built instance of CfnParameterGroup.