Class CfnServerlessCacheSnapshot.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnServerlessCacheSnapshot.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCacheSnapshot>
- Enclosing class:
CfnServerlessCacheSnapshot
@Stability(Stable)
public static final class CfnServerlessCacheSnapshot.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCacheSnapshot>
A fluent builder for
CfnServerlessCacheSnapshot.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the snapshot.serverlessCacheName(String serverlessCacheName) The name of an existing serverless cache.serverlessCacheSnapshotName(String serverlessCacheSnapshotName) The name of the serverless cache snapshot.A list of tags to be added to the serverless cache snapshot resource.
-
Method Details
-
create
@Stability(Stable) public static CfnServerlessCacheSnapshot.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnServerlessCacheSnapshot.Builder.
-
serverlessCacheName
@Stability(Stable) public CfnServerlessCacheSnapshot.Builder serverlessCacheName(String serverlessCacheName) The name of an existing serverless cache.The snapshot is created from this cache.
- Parameters:
serverlessCacheName- The name of an existing serverless cache. This parameter is required.- Returns:
this- See Also:
-
serverlessCacheSnapshotName
@Stability(Stable) public CfnServerlessCacheSnapshot.Builder serverlessCacheSnapshotName(String serverlessCacheSnapshotName) The name of the serverless cache snapshot.Must be unique for the customer account. This value is stored as a lowercase string.
- Parameters:
serverlessCacheSnapshotName- The name of the serverless cache snapshot. This parameter is required.- Returns:
this- See Also:
-
kmsKeyId
The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the snapshot.Provide the key ARN: the resource returns the key ARN on read, so supplying a bare key ID or alias for this createOnly property may be reported as drift by CloudFormation.
- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the snapshot. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags to be added to the serverless cache snapshot resource.- Parameters:
tags- A list of tags to be added to the serverless cache snapshot resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCacheSnapshot>- Returns:
- a newly built instance of
CfnServerlessCacheSnapshot.
-