Class ServerlessCache
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticache.alpha.ServerlessCacheBase
software.amazon.awscdk.services.elasticache.alpha.ServerlessCache
- All Implemented Interfaces:
IEnvironmentAware,IResource,IConnectable,IServerlessCache,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.220Z")
@Stability(Experimental)
public class ServerlessCache
extends ServerlessCacheBase
(experimental) A serverless ElastiCache cache.
Example:
Vpc vpc;
ServerlessCache serverlessCache = ServerlessCache.Builder.create(this, "ServerlessCache")
.engine(CacheEngine.VALKEY_LATEST)
.backup(BackupSettings.builder()
// set a backup name before deleting a cache
.backupNameBeforeDeletion("my-final-backup-name")
.build())
.vpc(vpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forServerlessCache.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticache.alpha.IServerlessCache
IServerlessCache.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerlessCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedServerlessCache(software.amazon.jsii.JsiiObjectRef objRef) ServerlessCache(software.constructs.Construct scope, String id, ServerlessCacheProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IServerlessCachefromServerlessCacheArn(software.constructs.Construct scope, String id, String serverlessCacheArn) (experimental) Import an existing serverless cache by ARN.static IServerlessCachefromServerlessCacheAttributes(software.constructs.Construct scope, String id, ServerlessCacheAttributes attrs) (experimental) Import an existing serverless cache using attributes.static IServerlessCachefromServerlessCacheName(software.constructs.Construct scope, String id, String serverlessCacheName) (experimental) Import an existing serverless cache by name.(experimental) The ARNs of backups restored in the cache.(experimental) Access to network connections.(experimental) The cache engine used by this cache.(experimental) The KMS key used for encryption.(experimental) The security groups associated with this cache.(experimental) The ARN of the serverless cache.(experimental) The endpoint address of the serverless cache.(experimental) The endpoint port of the serverless cache.(experimental) The name of the serverless cache.(experimental) The reader endpoint address of the serverless cache.(experimental) The reader endpoint port of the serverless cache.(experimental) The current status of the serverless cache Can be 'CREATING', 'AVAILABLE', 'DELETING', 'CREATE-FAILED', 'MODIFYING'.(experimental) The subnets this cache is deployed in.(experimental) The user group associated with this cache.getVpc()(experimental) The VPC this cache is deployed in.static Boolean(experimental) Return whether the given object is aServerlessCache.Methods inherited from class software.amazon.awscdk.services.elasticache.alpha.ServerlessCacheBase
grant, grantConnect, metric, metric, metricActiveConnections, metricActiveConnections, metricCacheHitCount, metricCacheHitCount, metricCacheHitRate, metricCacheHitRate, metricCacheMissCount, metricCacheMissCount, metricDataStored, metricDataStored, metricNetworkBytesIn, metricNetworkBytesIn, metricNetworkBytesOut, metricNetworkBytesOut, metricProcessingUnitsConsumed, metricProcessingUnitsConsumed, metricReadRequestLatency, metricReadRequestLatency, metricWriteRequestLatency, metricWriteRequestLatencyMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
ServerlessCache
protected ServerlessCache(software.amazon.jsii.JsiiObjectRef objRef) -
ServerlessCache
protected ServerlessCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ServerlessCache
@Stability(Experimental) public ServerlessCache(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ServerlessCacheProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromServerlessCacheArn
@Stability(Experimental) @NotNull public static IServerlessCache fromServerlessCacheArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String serverlessCacheArn) (experimental) Import an existing serverless cache by ARN.- Parameters:
scope- The parent creating construct (usuallythis). This parameter is required.id- The construct's name. This parameter is required.serverlessCacheArn- The ARN of the existing serverless cache. This parameter is required.
-
fromServerlessCacheAttributes
@Stability(Experimental) @NotNull public static IServerlessCache fromServerlessCacheAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ServerlessCacheAttributes attrs) (experimental) Import an existing serverless cache using attributes.- Parameters:
scope- The parent creating construct (usuallythis). This parameter is required.id- The construct's name. This parameter is required.attrs- AServerlessCacheAttributesobject. This parameter is required.
-
fromServerlessCacheName
@Stability(Experimental) @NotNull public static IServerlessCache fromServerlessCacheName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String serverlessCacheName) (experimental) Import an existing serverless cache by name.- Parameters:
scope- The parent creating construct (usuallythis). This parameter is required.id- The construct's name. This parameter is required.serverlessCacheName- The name of the existing serverless cache. This parameter is required.
-
isServerlessCache
(experimental) Return whether the given object is aServerlessCache.- Parameters:
x- This parameter is required.
-
getConnections
(experimental) Access to network connections.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin classServerlessCacheBase
-
getServerlessCacheArn
(experimental) The ARN of the serverless cache.- Specified by:
getServerlessCacheArnin interfaceIServerlessCache- Specified by:
getServerlessCacheArnin classServerlessCacheBase
-
getServerlessCacheEndpointAddress
(experimental) The endpoint address of the serverless cache. -
getServerlessCacheEndpointPort
(experimental) The endpoint port of the serverless cache. -
getServerlessCacheName
(experimental) The name of the serverless cache.- Specified by:
getServerlessCacheNamein interfaceIServerlessCache- Specified by:
getServerlessCacheNamein classServerlessCacheBase
-
getServerlessCacheReaderEndpointAddress
(experimental) The reader endpoint address of the serverless cache. -
getServerlessCacheReaderEndpointPort
(experimental) The reader endpoint port of the serverless cache. -
getServerlessCacheStatus
(experimental) The current status of the serverless cache Can be 'CREATING', 'AVAILABLE', 'DELETING', 'CREATE-FAILED', 'MODIFYING'. -
getBackupArnsToRestore
(experimental) The ARNs of backups restored in the cache.- Specified by:
getBackupArnsToRestorein interfaceIServerlessCache- Specified by:
getBackupArnsToRestorein classServerlessCacheBase
-
getEngine
(experimental) The cache engine used by this cache.- Specified by:
getEnginein interfaceIServerlessCache- Specified by:
getEnginein classServerlessCacheBase
-
getKmsKey
(experimental) The KMS key used for encryption.- Specified by:
getKmsKeyin interfaceIServerlessCache- Specified by:
getKmsKeyin classServerlessCacheBase
-
getSecurityGroups
(experimental) The security groups associated with this cache.- Specified by:
getSecurityGroupsin interfaceIServerlessCache- Specified by:
getSecurityGroupsin classServerlessCacheBase
-
getSubnets
(experimental) The subnets this cache is deployed in.- Specified by:
getSubnetsin interfaceIServerlessCache- Specified by:
getSubnetsin classServerlessCacheBase
-
getUserGroup
(experimental) The user group associated with this cache.- Specified by:
getUserGroupin interfaceIServerlessCache- Specified by:
getUserGroupin classServerlessCacheBase
-
getVpc
(experimental) The VPC this cache is deployed in.- Specified by:
getVpcin interfaceIServerlessCache- Specified by:
getVpcin classServerlessCacheBase
-