com.cloudsnorkel.cdk.rds.sanitizedsnapshots.RdsSanitizedSnapshotter Maven / Gradle / Ivy
package com.cloudsnorkel.cdk.rds.sanitizedsnapshots;
/**
* (experimental) A process to create sanitized snapshots of RDS instance or cluster, optionally on a schedule.
*
* The process is handled by a step function.
*
*
* - Snapshot the source database
* - Optionally re-encrypt the snapshot with a different key in case you want to share it with an account that doesn't have access to the original key
* - Create a temporary database
* - Run a Fargate task to connect to the temporary database and execute an arbitrary SQL script to sanitize it
* - Snapshot the sanitized database
* - Clean-up temporary snapshots and databases
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-01T15:09:06.915Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = com.cloudsnorkel.cdk.rds.sanitizedsnapshots.$Module.class, fqn = "@cloudsnorkel/cdk-rds-sanitized-snapshots.RdsSanitizedSnapshotter")
public class RdsSanitizedSnapshotter extends software.constructs.Construct {
protected RdsSanitizedSnapshotter(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RdsSanitizedSnapshotter(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public RdsSanitizedSnapshotter(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.cloudsnorkel.cdk.rds.sanitizedsnapshots.IRdsSanitizedSnapshotter props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull com.cloudsnorkel.cdk.rds.sanitizedsnapshots.IRdsSanitizedSnapshotter getProps() {
return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.rds.sanitizedsnapshots.IRdsSanitizedSnapshotter.class));
}
/**
* (experimental) Step function in charge of the entire process including snapshotting, sanitizing, and cleanup.
*
* Trigger this step function to get a new snapshot.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.stepfunctions.StateMachine getSnapshotter() {
return software.amazon.jsii.Kernel.get(this, "snapshotter", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.StateMachine.class));
}
/**
* (experimental) Step function in charge of the entire process including snapshotting, sanitizing, and cleanup.
*
* Trigger this step function to get a new snapshot.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setSnapshotter(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.stepfunctions.StateMachine value) {
software.amazon.jsii.Kernel.set(this, "snapshotter", java.util.Objects.requireNonNull(value, "snapshotter is required"));
}
}