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:
IResource
,IConnectable
,IServerlessCache
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
- Direct Known Subclasses:
ServerlessCache
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-01T17:47:05.836Z")
@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.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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServerlessCacheBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ServerlessCacheBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
ServerlessCacheBase
(software.constructs.Construct scope, String id) protected
ServerlessCacheBase
(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 IVpc
getVpc()
(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, 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
-
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:
grant
in 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:
grantConnect
in 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:
metric
in 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:
metric
in 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:
metricActiveConnections
in 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:
metricActiveConnections
in interfaceIServerlessCache
-
metricCacheHitCount
(experimental) Metric for cache hit count.Default: Sum over 5 minutes
- Specified by:
metricCacheHitCount
in 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:
metricCacheHitCount
in interfaceIServerlessCache
-
metricCacheHitRate
(experimental) Metric for cache hit rate.Default: Average over 5 minutes
- Specified by:
metricCacheHitRate
in 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:
metricCacheHitRate
in interfaceIServerlessCache
-
metricCacheMissCount
(experimental) Metric for cache miss count.Default: Sum over 5 minutes
- Specified by:
metricCacheMissCount
in 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:
metricCacheMissCount
in interfaceIServerlessCache
-
metricDataStored
(experimental) Metric for data stored in the cache.Default: Maximum over 5 minutes
- Specified by:
metricDataStored
in 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:
metricDataStored
in interfaceIServerlessCache
-
metricNetworkBytesIn
(experimental) Metric for network bytes in.Default: Sum over 5 minutes
- Specified by:
metricNetworkBytesIn
in 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:
metricNetworkBytesIn
in interfaceIServerlessCache
-
metricNetworkBytesOut
@Stability(Experimental) @NotNull public Metric metricNetworkBytesOut(@Nullable MetricOptions props) (experimental) Metric for network bytes out.Default: Sum over 5 minutes
- Specified by:
metricNetworkBytesOut
in 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:
metricNetworkBytesOut
in interfaceIServerlessCache
-
metricProcessingUnitsConsumed
@Stability(Experimental) @NotNull public Metric metricProcessingUnitsConsumed(@Nullable MetricOptions props) (experimental) Metric for ECPUs consumed.Default: Average over 5 minutes
- Specified by:
metricProcessingUnitsConsumed
in 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:
metricProcessingUnitsConsumed
in interfaceIServerlessCache
-
metricReadRequestLatency
@Stability(Experimental) @NotNull public Metric metricReadRequestLatency(@Nullable MetricOptions props) (experimental) Metric for read request latency.Default: Average over 5 minutes
- Specified by:
metricReadRequestLatency
in 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:
metricReadRequestLatency
in interfaceIServerlessCache
-
metricWriteRequestLatency
@Stability(Experimental) @NotNull public Metric metricWriteRequestLatency(@Nullable MetricOptions props) (experimental) Metric for write request latency.Default: Average over 5 minutes
- Specified by:
metricWriteRequestLatency
in 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:
metricWriteRequestLatency
in interfaceIServerlessCache
-
getConnections
(experimental) Access to network connections.- Specified by:
getConnections
in interfaceIConnectable
-
getServerlessCacheArn
(experimental) The ARN of the serverless cache.- Specified by:
getServerlessCacheArn
in interfaceIServerlessCache
-
getServerlessCacheName
(experimental) The name of the serverless cache.- Specified by:
getServerlessCacheName
in interfaceIServerlessCache
-
getBackupArnsToRestore
(experimental) The ARNs of backups restored in the cache.- Specified by:
getBackupArnsToRestore
in interfaceIServerlessCache
-
getEngine
(experimental) The cache engine used by this cache.- Specified by:
getEngine
in interfaceIServerlessCache
-
getKmsKey
(experimental) The KMS key used for encryption.- Specified by:
getKmsKey
in interfaceIServerlessCache
-
getSecurityGroups
(experimental) The security groups associated with this cache.- Specified by:
getSecurityGroups
in interfaceIServerlessCache
-
getSubnets
(experimental) The subnets this cache is deployed in.- Specified by:
getSubnets
in interfaceIServerlessCache
-
getUserGroup
(experimental) The user group associated with this cache.- Specified by:
getUserGroup
in interfaceIServerlessCache
-
getVpc
(experimental) The VPC this cache is deployed in.- Specified by:
getVpc
in interfaceIServerlessCache
-