Class ServerlessCacheBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticache.alpha.ServerlessCacheBase
- All Implemented Interfaces:
IEnvironmentAware,IResource,IConnectable,IServerlessCache,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
ServerlessCache
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.222Z")
@Stability(Experimental)
public abstract class ServerlessCacheBase
extends Resource
implements IServerlessCache
(experimental) Base class for ServerlessCache constructs.
-
Nested Class Summary
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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerlessCacheBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedServerlessCacheBase(software.amazon.jsii.JsiiObjectRef objRef) protectedServerlessCacheBase(software.constructs.Construct scope, String id) protectedServerlessCacheBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescription(experimental) The ARNs of backups restored in the cache.abstract Connections(experimental) Access to network connections.abstract CacheEngine(experimental) The cache engine used by this cache.abstract IKey(experimental) The KMS key used for encryption.abstract List<ISecurityGroup> (experimental) The security groups associated with this cache.abstract String(experimental) The ARN of the serverless cache.abstract String(experimental) The name of the serverless cache.(experimental) The subnets this cache is deployed in.abstract IUserGroup(experimental) The user group associated with this cache.abstract IVpcgetVpc()(experimental) The VPC this cache is deployed in.grant(IGrantable grantee, String... actions) (experimental) Grant the given identity custom permissions.grantConnect(IGrantable grantee) (experimental) Grant connect permissions to the cache.(experimental) Return the given named metric for this cache.metric(String metricName, MetricOptions props) (experimental) Return the given named metric for this cache.(experimental) Metric for active connections.(experimental) Metric for active connections.(experimental) Metric for cache hit count.metricCacheHitCount(MetricOptions props) (experimental) Metric for cache hit count.(experimental) Metric for cache hit rate.metricCacheHitRate(MetricOptions props) (experimental) Metric for cache hit rate.(experimental) Metric for cache miss count.(experimental) Metric for cache miss count.(experimental) Metric for data stored in the cache.metricDataStored(MetricOptions props) (experimental) Metric for data stored in the cache.(experimental) Metric for network bytes in.(experimental) Metric for network bytes in.(experimental) Metric for network bytes out.(experimental) Metric for network bytes out.(experimental) Metric for ECPUs consumed.(experimental) Metric for ECPUs consumed.(experimental) Metric for read request latency.(experimental) Metric for read request latency.(experimental) Metric for write request latency.(experimental) Metric for write request latency.Methods 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
-
Constructor Details
-
ServerlessCacheBase
protected ServerlessCacheBase(software.amazon.jsii.JsiiObjectRef objRef) -
ServerlessCacheBase
protected ServerlessCacheBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ServerlessCacheBase
@Stability(Stable) protected ServerlessCacheBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
ServerlessCacheBase
@Stability(Stable) protected ServerlessCacheBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
grant
@Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant the given identity custom permissions.- Specified by:
grantin interfaceIServerlessCache- Parameters:
grantee- The principal to grant permissions to. This parameter is required.actions- The actions to grant. This parameter is required.
-
grantConnect
(experimental) Grant connect permissions to the cache.- Specified by:
grantConnectin interfaceIServerlessCache- Parameters:
grantee- The principal to grant permissions to. This parameter is required.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for this cache.Default: Average over 5 minutes
- Specified by:
metricin interfaceIServerlessCache- Parameters:
metricName- The name of the metric. This parameter is required.props- Additional properties which will be merged with the default metric.
-
metric
(experimental) Return the given named metric for this cache.Default: Average over 5 minutes
- Specified by:
metricin interfaceIServerlessCache- Parameters:
metricName- The name of the metric. This parameter is required.
-
metricActiveConnections
@Stability(Experimental) @NotNull public Metric metricActiveConnections(@Nullable MetricOptions props) (experimental) Metric for active connections.Default: Maximum over 5 minutes
- Specified by:
metricActiveConnectionsin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricActiveConnections
(experimental) Metric for active connections.Default: Maximum over 5 minutes
- Specified by:
metricActiveConnectionsin interfaceIServerlessCache
-
metricCacheHitCount
(experimental) Metric for cache hit count.Default: Sum over 5 minutes
- Specified by:
metricCacheHitCountin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricCacheHitCount
(experimental) Metric for cache hit count.Default: Sum over 5 minutes
- Specified by:
metricCacheHitCountin interfaceIServerlessCache
-
metricCacheHitRate
(experimental) Metric for cache hit rate.Default: Average over 5 minutes
- Specified by:
metricCacheHitRatein interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricCacheHitRate
(experimental) Metric for cache hit rate.Default: Average over 5 minutes
- Specified by:
metricCacheHitRatein interfaceIServerlessCache
-
metricCacheMissCount
(experimental) Metric for cache miss count.Default: Sum over 5 minutes
- Specified by:
metricCacheMissCountin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricCacheMissCount
(experimental) Metric for cache miss count.Default: Sum over 5 minutes
- Specified by:
metricCacheMissCountin interfaceIServerlessCache
-
metricDataStored
(experimental) Metric for data stored in the cache.Default: Maximum over 5 minutes
- Specified by:
metricDataStoredin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricDataStored
(experimental) Metric for data stored in the cache.Default: Maximum over 5 minutes
- Specified by:
metricDataStoredin interfaceIServerlessCache
-
metricNetworkBytesIn
(experimental) Metric for network bytes in.Default: Sum over 5 minutes
- Specified by:
metricNetworkBytesInin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricNetworkBytesIn
(experimental) Metric for network bytes in.Default: Sum over 5 minutes
- Specified by:
metricNetworkBytesInin interfaceIServerlessCache
-
metricNetworkBytesOut
@Stability(Experimental) @NotNull public Metric metricNetworkBytesOut(@Nullable MetricOptions props) (experimental) Metric for network bytes out.Default: Sum over 5 minutes
- Specified by:
metricNetworkBytesOutin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricNetworkBytesOut
(experimental) Metric for network bytes out.Default: Sum over 5 minutes
- Specified by:
metricNetworkBytesOutin interfaceIServerlessCache
-
metricProcessingUnitsConsumed
@Stability(Experimental) @NotNull public Metric metricProcessingUnitsConsumed(@Nullable MetricOptions props) (experimental) Metric for ECPUs consumed.Default: Average over 5 minutes
- Specified by:
metricProcessingUnitsConsumedin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricProcessingUnitsConsumed
(experimental) Metric for ECPUs consumed.Default: Average over 5 minutes
- Specified by:
metricProcessingUnitsConsumedin interfaceIServerlessCache
-
metricReadRequestLatency
@Stability(Experimental) @NotNull public Metric metricReadRequestLatency(@Nullable MetricOptions props) (experimental) Metric for read request latency.Default: Average over 5 minutes
- Specified by:
metricReadRequestLatencyin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricReadRequestLatency
(experimental) Metric for read request latency.Default: Average over 5 minutes
- Specified by:
metricReadRequestLatencyin interfaceIServerlessCache
-
metricWriteRequestLatency
@Stability(Experimental) @NotNull public Metric metricWriteRequestLatency(@Nullable MetricOptions props) (experimental) Metric for write request latency.Default: Average over 5 minutes
- Specified by:
metricWriteRequestLatencyin interfaceIServerlessCache- Parameters:
props- Additional properties which will be merged with the default metric.
-
metricWriteRequestLatency
(experimental) Metric for write request latency.Default: Average over 5 minutes
- Specified by:
metricWriteRequestLatencyin interfaceIServerlessCache
-
getConnections
(experimental) Access to network connections.- Specified by:
getConnectionsin interfaceIConnectable
-
getServerlessCacheArn
(experimental) The ARN of the serverless cache.- Specified by:
getServerlessCacheArnin interfaceIServerlessCache
-
getServerlessCacheName
(experimental) The name of the serverless cache.- Specified by:
getServerlessCacheNamein interfaceIServerlessCache
-
getBackupArnsToRestore
(experimental) The ARNs of backups restored in the cache.- Specified by:
getBackupArnsToRestorein interfaceIServerlessCache
-
getEngine
(experimental) The cache engine used by this cache.- Specified by:
getEnginein interfaceIServerlessCache
-
getKmsKey
(experimental) The KMS key used for encryption.- Specified by:
getKmsKeyin interfaceIServerlessCache
-
getSecurityGroups
(experimental) The security groups associated with this cache.- Specified by:
getSecurityGroupsin interfaceIServerlessCache
-
getSubnets
(experimental) The subnets this cache is deployed in.- Specified by:
getSubnetsin interfaceIServerlessCache
-
getUserGroup
(experimental) The user group associated with this cache.- Specified by:
getUserGroupin interfaceIServerlessCache
-
getVpc
(experimental) The VPC this cache is deployed in.- Specified by:
getVpcin interfaceIServerlessCache
-