Class ServerlessCache.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.ServerlessCache.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServerlessCache>
- Enclosing class:
ServerlessCache
@Stability(Experimental)
public static final class ServerlessCache.Builder
extends Object
implements software.amazon.jsii.Builder<ServerlessCache>
(experimental) A fluent builder for
ServerlessCache
.-
Method Summary
Modifier and TypeMethodDescriptionbackup
(BackupSettings backup) (experimental) Backup configuration.build()
cacheUsageLimits
(CacheUsageLimitsProperty cacheUsageLimits) (experimental) Usage limits for the cache.static ServerlessCache.Builder
description
(String description) (experimental) A description for the cache.engine
(CacheEngine engine) (experimental) The cache engine combined with the version Enum options: VALKEY_DEFAULT, VALKEY_7, VALKEY_8, REDIS_DEFAULT, MEMCACHED_DEFAULT The default options bring the latest versions available.(experimental) KMS key for encryption.securityGroups
(List<? extends ISecurityGroup> securityGroups) (experimental) Security groups for the cache.serverlessCacheName
(String serverlessCacheName) (experimental) Name for the serverless cache.userGroup
(IUserGroup userGroup) (experimental) User group for access control.(experimental) The VPC to place the cache in.vpcSubnets
(SubnetSelection vpcSubnets) (experimental) Which subnets to place the cache in.
-
Method Details
-
create
@Stability(Experimental) public static ServerlessCache.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ServerlessCache.Builder
.
-
vpc
(experimental) The VPC to place the cache in.- Parameters:
vpc
- The VPC to place the cache in. This parameter is required.- Returns:
this
-
backup
(experimental) Backup configuration.Default: - No backups configured
- Parameters:
backup
- Backup configuration. This parameter is required.- Returns:
this
-
cacheUsageLimits
@Stability(Experimental) public ServerlessCache.Builder cacheUsageLimits(CacheUsageLimitsProperty cacheUsageLimits) (experimental) Usage limits for the cache.Default: - No usage limits
- Parameters:
cacheUsageLimits
- Usage limits for the cache. This parameter is required.- Returns:
this
-
description
(experimental) A description for the cache.Default: - No description
- Parameters:
description
- A description for the cache. This parameter is required.- Returns:
this
-
engine
(experimental) The cache engine combined with the version Enum options: VALKEY_DEFAULT, VALKEY_7, VALKEY_8, REDIS_DEFAULT, MEMCACHED_DEFAULT The default options bring the latest versions available.Default: when not provided, the default engine would be Valkey, latest version available (VALKEY_DEFAULT)
- Parameters:
engine
- The cache engine combined with the version Enum options: VALKEY_DEFAULT, VALKEY_7, VALKEY_8, REDIS_DEFAULT, MEMCACHED_DEFAULT The default options bring the latest versions available. This parameter is required.- Returns:
this
-
kmsKey
(experimental) KMS key for encryption.Default: - Service managed encryption (AWS owned KMS key)
- Parameters:
kmsKey
- KMS key for encryption. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public ServerlessCache.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) (experimental) Security groups for the cache.Default: - A new security group is created
- Parameters:
securityGroups
- Security groups for the cache. This parameter is required.- Returns:
this
-
serverlessCacheName
@Stability(Experimental) public ServerlessCache.Builder serverlessCacheName(String serverlessCacheName) (experimental) Name for the serverless cache.Default: automatically generated name by Resource
- Parameters:
serverlessCacheName
- Name for the serverless cache. This parameter is required.- Returns:
this
-
userGroup
(experimental) User group for access control.Default: - No user group
- Parameters:
userGroup
- User group for access control. This parameter is required.- Returns:
this
-
vpcSubnets
(experimental) Which subnets to place the cache in.Default: - Private subnets with egress
- Parameters:
vpcSubnets
- Which subnets to place the cache in. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServerlessCache>
- Returns:
- a newly built instance of
ServerlessCache
.
-