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

com.pulumi.aws.redshift.SnapshotCopyArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.redshift;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SnapshotCopyArgs extends com.pulumi.resources.ResourceArgs {

    public static final SnapshotCopyArgs Empty = new SnapshotCopyArgs();

    /**
     * Identifier of the source cluster.
     * 
     */
    @Import(name="clusterIdentifier", required=true)
    private Output clusterIdentifier;

    /**
     * @return Identifier of the source cluster.
     * 
     */
    public Output clusterIdentifier() {
        return this.clusterIdentifier;
    }

    /**
     * AWS Region to copy snapshots to.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="destinationRegion", required=true)
    private Output destinationRegion;

    /**
     * @return AWS Region to copy snapshots to.
     * 
     * The following arguments are optional:
     * 
     */
    public Output destinationRegion() {
        return this.destinationRegion;
    }

    /**
     * Number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is `-1`, the manual snapshot is retained indefinitely.
     * 
     */
    @Import(name="manualSnapshotRetentionPeriod")
    private @Nullable Output manualSnapshotRetentionPeriod;

    /**
     * @return Number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is `-1`, the manual snapshot is retained indefinitely.
     * 
     */
    public Optional> manualSnapshotRetentionPeriod() {
        return Optional.ofNullable(this.manualSnapshotRetentionPeriod);
    }

    /**
     * Number of days to retain automated snapshots in the destination region after they are copied from the source region.
     * 
     */
    @Import(name="retentionPeriod")
    private @Nullable Output retentionPeriod;

    /**
     * @return Number of days to retain automated snapshots in the destination region after they are copied from the source region.
     * 
     */
    public Optional> retentionPeriod() {
        return Optional.ofNullable(this.retentionPeriod);
    }

    /**
     * Name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
     * 
     */
    @Import(name="snapshotCopyGrantName")
    private @Nullable Output snapshotCopyGrantName;

    /**
     * @return Name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
     * 
     */
    public Optional> snapshotCopyGrantName() {
        return Optional.ofNullable(this.snapshotCopyGrantName);
    }

    private SnapshotCopyArgs() {}

    private SnapshotCopyArgs(SnapshotCopyArgs $) {
        this.clusterIdentifier = $.clusterIdentifier;
        this.destinationRegion = $.destinationRegion;
        this.manualSnapshotRetentionPeriod = $.manualSnapshotRetentionPeriod;
        this.retentionPeriod = $.retentionPeriod;
        this.snapshotCopyGrantName = $.snapshotCopyGrantName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SnapshotCopyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SnapshotCopyArgs $;

        public Builder() {
            $ = new SnapshotCopyArgs();
        }

        public Builder(SnapshotCopyArgs defaults) {
            $ = new SnapshotCopyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param clusterIdentifier Identifier of the source cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterIdentifier(Output clusterIdentifier) {
            $.clusterIdentifier = clusterIdentifier;
            return this;
        }

        /**
         * @param clusterIdentifier Identifier of the source cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterIdentifier(String clusterIdentifier) {
            return clusterIdentifier(Output.of(clusterIdentifier));
        }

        /**
         * @param destinationRegion AWS Region to copy snapshots to.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder destinationRegion(Output destinationRegion) {
            $.destinationRegion = destinationRegion;
            return this;
        }

        /**
         * @param destinationRegion AWS Region to copy snapshots to.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder destinationRegion(String destinationRegion) {
            return destinationRegion(Output.of(destinationRegion));
        }

        /**
         * @param manualSnapshotRetentionPeriod Number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is `-1`, the manual snapshot is retained indefinitely.
         * 
         * @return builder
         * 
         */
        public Builder manualSnapshotRetentionPeriod(@Nullable Output manualSnapshotRetentionPeriod) {
            $.manualSnapshotRetentionPeriod = manualSnapshotRetentionPeriod;
            return this;
        }

        /**
         * @param manualSnapshotRetentionPeriod Number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is `-1`, the manual snapshot is retained indefinitely.
         * 
         * @return builder
         * 
         */
        public Builder manualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod) {
            return manualSnapshotRetentionPeriod(Output.of(manualSnapshotRetentionPeriod));
        }

        /**
         * @param retentionPeriod Number of days to retain automated snapshots in the destination region after they are copied from the source region.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriod(@Nullable Output retentionPeriod) {
            $.retentionPeriod = retentionPeriod;
            return this;
        }

        /**
         * @param retentionPeriod Number of days to retain automated snapshots in the destination region after they are copied from the source region.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriod(Integer retentionPeriod) {
            return retentionPeriod(Output.of(retentionPeriod));
        }

        /**
         * @param snapshotCopyGrantName Name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
         * 
         * @return builder
         * 
         */
        public Builder snapshotCopyGrantName(@Nullable Output snapshotCopyGrantName) {
            $.snapshotCopyGrantName = snapshotCopyGrantName;
            return this;
        }

        /**
         * @param snapshotCopyGrantName Name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
         * 
         * @return builder
         * 
         */
        public Builder snapshotCopyGrantName(String snapshotCopyGrantName) {
            return snapshotCopyGrantName(Output.of(snapshotCopyGrantName));
        }

        public SnapshotCopyArgs build() {
            if ($.clusterIdentifier == null) {
                throw new MissingRequiredPropertyException("SnapshotCopyArgs", "clusterIdentifier");
            }
            if ($.destinationRegion == null) {
                throw new MissingRequiredPropertyException("SnapshotCopyArgs", "destinationRegion");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy