Class CfnServerlessCache
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.elasticache.CfnServerlessCache
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:43.205Z")
@Stability(Stable)
public class CfnServerlessCache
extends CfnResource
implements IInspectable, ITaggableV2
The resource representing a serverless cache.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticache.*; CfnServerlessCache cfnServerlessCache = CfnServerlessCache.Builder.create(this, "MyCfnServerlessCache") .engine("engine") .serverlessCacheName("serverlessCacheName") // the properties below are optional .cacheUsageLimits(CacheUsageLimitsProperty.builder() .dataStorage(DataStorageProperty.builder() .unit("unit") // the properties below are optional .maximum(123) .minimum(123) .build()) .ecpuPerSecond(ECPUPerSecondProperty.builder() .maximum(123) .minimum(123) .build()) .build()) .dailySnapshotTime("dailySnapshotTime") .description("description") .endpoint(EndpointProperty.builder() .address("address") .port("port") .build()) .finalSnapshotName("finalSnapshotName") .kmsKeyId("kmsKeyId") .majorEngineVersion("majorEngineVersion") .readerEndpoint(EndpointProperty.builder() .address("address") .port("port") .build()) .securityGroupIds(List.of("securityGroupIds")) .snapshotArnsToRestore(List.of("snapshotArnsToRestore")) .snapshotRetentionLimit(123) .subnetIds(List.of("subnetIds")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .userGroupId("userGroupId") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnServerlessCache
.static interface
The usage limits for storage and ElastiCache Processing Units for the cache.static interface
The data storage limit.static interface
The configuration for the number of ElastiCache Processing Units (ECPU) the cache can consume per second.static interface
Represents the information required for client programs to connect to a cache node.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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnServerlessCache
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnServerlessCache
(software.amazon.jsii.JsiiObjectRef objRef) CfnServerlessCache
(software.constructs.Construct scope, String id, CfnServerlessCacheProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the serverless cache.When the serverless cache was created.The DNS hostname of the cache node.The port number that the cache engine is listening on.The name and version number of the engine the serverless cache is compatible with.The DNS hostname of the cache node.The port number that the cache engine is listening on.The current status of the serverless cache.The cache usage limit for the serverless cache.Tag Manager which manages the tags for this resource.The daily time that a cache snapshot will be created.A description of the serverless cache.Represents the information required for client programs to connect to a cache node.The engine the serverless cache is compatible with.The name of the final snapshot taken of a cache before the cache is deleted.The ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.The version number of the engine the serverless cache is compatible with.Represents the information required for client programs to connect to a cache node.The IDs of the EC2 security groups associated with the serverless cache.The unique identifier of the serverless cache.The ARN of the snapshot from which to restore data into the new cache.The current setting for the number of serverless cache snapshots the system will retain.If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC.getTags()
A list of tags to be added to this resource.The identifier of the user group associated with the serverless cache.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCacheUsageLimits
(IResolvable value) The cache usage limit for the serverless cache.void
The cache usage limit for the serverless cache.void
setDailySnapshotTime
(String value) The daily time that a cache snapshot will be created.void
setDescription
(String value) A description of the serverless cache.void
setEndpoint
(IResolvable value) Represents the information required for client programs to connect to a cache node.void
Represents the information required for client programs to connect to a cache node.void
The engine the serverless cache is compatible with.void
setFinalSnapshotName
(String value) The name of the final snapshot taken of a cache before the cache is deleted.void
setKmsKeyId
(String value) The ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.void
setMajorEngineVersion
(String value) The version number of the engine the serverless cache is compatible with.void
setReaderEndpoint
(IResolvable value) Represents the information required for client programs to connect to a cache node.void
Represents the information required for client programs to connect to a cache node.void
setSecurityGroupIds
(List<String> value) The IDs of the EC2 security groups associated with the serverless cache.void
setServerlessCacheName
(String value) The unique identifier of the serverless cache.void
setSnapshotArnsToRestore
(List<String> value) The ARN of the snapshot from which to restore data into the new cache.void
setSnapshotRetentionLimit
(Number value) The current setting for the number of serverless cache snapshots the system will retain.void
setSubnetIds
(List<String> value) If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC.void
A list of tags to be added to this resource.void
setUserGroupId
(String value) The identifier of the user group associated with the serverless cache.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnServerlessCache
protected CfnServerlessCache(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServerlessCache
protected CfnServerlessCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServerlessCache
@Stability(Stable) public CfnServerlessCache(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnServerlessCacheProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the serverless cache. -
getAttrCreateTime
When the serverless cache was created. -
getAttrEndpointAddress
The DNS hostname of the cache node. -
getAttrEndpointPort
The port number that the cache engine is listening on. -
getAttrFullEngineVersion
The name and version number of the engine the serverless cache is compatible with. -
getAttrReaderEndpointAddress
The DNS hostname of the cache node. -
getAttrReaderEndpointPort
The port number that the cache engine is listening on. -
getAttrStatus
The current status of the serverless cache.The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED and MODIFYING.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getEngine
The engine the serverless cache is compatible with. -
setEngine
The engine the serverless cache is compatible with. -
getServerlessCacheName
The unique identifier of the serverless cache. -
setServerlessCacheName
The unique identifier of the serverless cache. -
getCacheUsageLimits
The cache usage limit for the serverless cache. -
setCacheUsageLimits
The cache usage limit for the serverless cache. -
setCacheUsageLimits
@Stability(Stable) public void setCacheUsageLimits(@Nullable CfnServerlessCache.CacheUsageLimitsProperty value) The cache usage limit for the serverless cache. -
getDailySnapshotTime
The daily time that a cache snapshot will be created. -
setDailySnapshotTime
The daily time that a cache snapshot will be created. -
getDescription
A description of the serverless cache. -
setDescription
A description of the serverless cache. -
getEndpoint
Represents the information required for client programs to connect to a cache node. -
setEndpoint
Represents the information required for client programs to connect to a cache node. -
setEndpoint
Represents the information required for client programs to connect to a cache node. -
getFinalSnapshotName
The name of the final snapshot taken of a cache before the cache is deleted. -
setFinalSnapshotName
The name of the final snapshot taken of a cache before the cache is deleted. -
getKmsKeyId
The ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache. -
setKmsKeyId
The ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache. -
getMajorEngineVersion
The version number of the engine the serverless cache is compatible with. -
setMajorEngineVersion
The version number of the engine the serverless cache is compatible with. -
getReaderEndpoint
Represents the information required for client programs to connect to a cache node. -
setReaderEndpoint
Represents the information required for client programs to connect to a cache node. -
setReaderEndpoint
@Stability(Stable) public void setReaderEndpoint(@Nullable CfnServerlessCache.EndpointProperty value) Represents the information required for client programs to connect to a cache node. -
getSecurityGroupIds
The IDs of the EC2 security groups associated with the serverless cache. -
setSecurityGroupIds
The IDs of the EC2 security groups associated with the serverless cache. -
getSnapshotArnsToRestore
The ARN of the snapshot from which to restore data into the new cache. -
setSnapshotArnsToRestore
The ARN of the snapshot from which to restore data into the new cache. -
getSnapshotRetentionLimit
The current setting for the number of serverless cache snapshots the system will retain. -
setSnapshotRetentionLimit
The current setting for the number of serverless cache snapshots the system will retain. -
getSubnetIds
If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC. -
setSubnetIds
If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC. -
getTags
A list of tags to be added to this resource. -
setTags
A list of tags to be added to this resource. -
getUserGroupId
The identifier of the user group associated with the serverless cache. -
setUserGroupId
The identifier of the user group associated with the serverless cache.
-