All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pepperize.cdk.dynamodb_backup.DataPipelineBackup Maven / Gradle / Ivy

There is a newer version: 0.0.475
Show newest version
package com.pepperize.cdk.dynamodb_backup;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.106.0 (build e852934)", date = "2024-12-23T10:10:11.889Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.pepperize.cdk.dynamodb_backup.$Module.class, fqn = "@pepperize/cdk-dynamodb-backup.DataPipelineBackup")
public class DataPipelineBackup extends software.constructs.Construct implements software.amazon.awscdk.ITaggable {

    protected DataPipelineBackup(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected DataPipelineBackup(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 DataPipelineBackup(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.pepperize.cdk.dynamodb_backup.DataPipelineBackupProps 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") });
    }

    /**
     * The instance profile of the emr cluster resources.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.CfnInstanceProfile getInstanceProfile() {
        return software.amazon.jsii.Kernel.get(this, "instanceProfile", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.CfnInstanceProfile.class));
    }

    /**
     * The role used by the emr cluster resources.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IRole getResourceRole() {
        return software.amazon.jsii.Kernel.get(this, "resourceRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class));
    }

    /**
     * The role used by datapipelines service.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IRole getRole() {
        return software.amazon.jsii.Kernel.get(this, "role", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class));
    }

    /**
     * TagManager to set, remove and format tags.
     */
    @Override
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.TagManager getTags() {
        return software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.TagManager.class));
    }

    /**
     * A fluent builder for {@link com.pepperize.cdk.dynamodb_backup.DataPipelineBackup}.
     */
    @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 com.pepperize.cdk.dynamodb_backup.DataPipelineBackupProps.Builder props;

        private Builder(final software.constructs.Construct scope, final java.lang.String id) {
            this.scope = scope;
            this.id = id;
            this.props = new com.pepperize.cdk.dynamodb_backup.DataPipelineBackupProps.Builder();
        }

        /**
         * @return {@code this}
         * @param dynamoDbThroughputRatio This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder dynamoDbThroughputRatio(final java.lang.Number dynamoDbThroughputRatio) {
            this.props.dynamoDbThroughputRatio(dynamoDbThroughputRatio);
            return this;
        }

        /**
         * @return {@code this}
         * @param logsBucket This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder logsBucket(final software.amazon.awscdk.services.s3.IBucket logsBucket) {
            this.props.logsBucket(logsBucket);
            return this;
        }

        /**
         * @return {@code this}
         * @param pipelineName This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder pipelineName(final java.lang.String pipelineName) {
            this.props.pipelineName(pipelineName);
            return this;
        }

        /**
         * @return {@code this}
         * @param schedule This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder schedule(final software.amazon.awscdk.Duration schedule) {
            this.props.schedule(schedule);
            return this;
        }

        /**
         * @return {@code this}
         * @param backupBucket This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder backupBucket(final software.amazon.awscdk.services.s3.IBucket backupBucket) {
            this.props.backupBucket(backupBucket);
            return this;
        }

        /**
         * @return {@code this}
         * @param table This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder table(final software.amazon.awscdk.services.dynamodb.ITable table) {
            this.props.table(table);
            return this;
        }

        /**
         * @return a newly built instance of {@link com.pepperize.cdk.dynamodb_backup.DataPipelineBackup}.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public com.pepperize.cdk.dynamodb_backup.DataPipelineBackup build() {
            return new com.pepperize.cdk.dynamodb_backup.DataPipelineBackup(
                this.scope,
                this.id,
                this.props.build()
            );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy