org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRest Maven / Gradle / Ivy
Show all versions of awscdk-resources-mongodbatlas Show documentation
package org.mongodb.awscdk.resources.mongodbatlas;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.94.0 (build b380f01)", date = "2024-02-05T16:04:31.776Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.AtlasEncryptionAtRest")
public class AtlasEncryptionAtRest extends software.constructs.Construct {
protected AtlasEncryptionAtRest(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected AtlasEncryptionAtRest(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.Stable)
public AtlasEncryptionAtRest(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRestProps 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.Stable)
public @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnEncryptionAtRest getCfnEncryptionAtRest() {
return software.amazon.jsii.Kernel.get(this, "cfnEncryptionAtRest", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnEncryptionAtRest.class));
}
/**
* A fluent builder for {@link org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRest}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRestProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRestProps.Builder();
}
/**
* The AWS customer master key used to encrypt and decrypt the MongoDB master keys.
*
* @return {@code this}
* @param customerMasterKeyId The AWS customer master key used to encrypt and decrypt the MongoDB master keys. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder customerMasterKeyId(final java.lang.String customerMasterKeyId) {
this.props.customerMasterKeyId(customerMasterKeyId);
return this;
}
/**
* Unique identifier of the Atlas project to which the user belongs.
*
* @return {@code this}
* @param projectId Unique identifier of the Atlas project to which the user belongs. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder projectId(final java.lang.String projectId) {
this.props.projectId(projectId);
return this;
}
/**
* ID of an AWS IAM role authorized to manage an AWS customer master key.
*
* @return {@code this}
* @param roleId ID of an AWS IAM role authorized to manage an AWS customer master key. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder roleId(final java.lang.String roleId) {
this.props.roleId(roleId);
return this;
}
/**
* Specifies whether Encryption at Rest is enabled for an Atlas project.
*
* To disable Encryption at Rest, pass only this parameter with a value of false. When you disable Encryption at Rest, Atlas also removes the configuration details.
* Default Value: true
*
* @return {@code this}
* @param enabled Specifies whether Encryption at Rest is enabled for an Atlas project. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder enabled(final java.lang.Boolean enabled) {
this.props.enabled(enabled);
return this;
}
/**
* The profile is defined in AWS Secret manager.
*
* See Secret Manager Profile setup.
*
* @return {@code this}
* @param profile The profile is defined in AWS Secret manager. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder profile(final java.lang.String profile) {
this.props.profile(profile);
return this;
}
/**
* The AWS region in which the AWS customer master key exists.
*
* Default Value: US_EAST_1
*
* @return {@code this}
* @param region The AWS region in which the AWS customer master key exists. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder region(final java.lang.String region) {
this.props.region(region);
return this;
}
/**
* @return a newly built instance of {@link org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRest}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRest build() {
return new org.mongodb.awscdk.resources.mongodbatlas.AtlasEncryptionAtRest(
this.scope,
this.id,
this.props.build()
);
}
}
}