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:
IResource
,IConnectable
,IServerlessCache
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-01T17:47:05.834Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested 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
ConstructorsModifierConstructorDescriptionprotected
ServerlessCache
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ServerlessCache
(software.amazon.jsii.JsiiObjectRef objRef) ServerlessCache
(software.constructs.Construct scope, String id, ServerlessCacheProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IServerlessCache
fromServerlessCacheArn
(software.constructs.Construct scope, String id, String serverlessCacheArn) (experimental) Import an existing serverless cache by ARN.static IServerlessCache
fromServerlessCacheAttributes
(software.constructs.Construct scope, String id, ServerlessCacheAttributes attrs) (experimental) Import an existing serverless cache using attributes.static IServerlessCache
fromServerlessCacheName
(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, metricWriteRequestLatency
Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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
- AServerlessCacheAttributes
object. 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:
getConnections
in interfaceIConnectable
- Specified by:
getConnections
in classServerlessCacheBase
-
getServerlessCacheArn
(experimental) The ARN of the serverless cache.- Specified by:
getServerlessCacheArn
in interfaceIServerlessCache
- Specified by:
getServerlessCacheArn
in 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:
getServerlessCacheName
in interfaceIServerlessCache
- Specified by:
getServerlessCacheName
in 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:
getBackupArnsToRestore
in interfaceIServerlessCache
- Specified by:
getBackupArnsToRestore
in classServerlessCacheBase
-
getEngine
(experimental) The cache engine used by this cache.- Specified by:
getEngine
in interfaceIServerlessCache
- Specified by:
getEngine
in classServerlessCacheBase
-
getKmsKey
(experimental) The KMS key used for encryption.- Specified by:
getKmsKey
in interfaceIServerlessCache
- Specified by:
getKmsKey
in classServerlessCacheBase
-
getSecurityGroups
(experimental) The security groups associated with this cache.- Specified by:
getSecurityGroups
in interfaceIServerlessCache
- Specified by:
getSecurityGroups
in classServerlessCacheBase
-
getSubnets
(experimental) The subnets this cache is deployed in.- Specified by:
getSubnets
in interfaceIServerlessCache
- Specified by:
getSubnets
in classServerlessCacheBase
-
getUserGroup
(experimental) The user group associated with this cache.- Specified by:
getUserGroup
in interfaceIServerlessCache
- Specified by:
getUserGroup
in classServerlessCacheBase
-
getVpc
(experimental) The VPC this cache is deployed in.- Specified by:
getVpc
in interfaceIServerlessCache
- Specified by:
getVpc
in classServerlessCacheBase
-