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

com.pulumi.aws.s3.inputs.BucketReplicationConfigurationRuleArgs 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.s3.inputs;

import com.pulumi.aws.s3.inputs.BucketReplicationConfigurationRuleDestinationArgs;
import com.pulumi.aws.s3.inputs.BucketReplicationConfigurationRuleFilterArgs;
import com.pulumi.aws.s3.inputs.BucketReplicationConfigurationRuleSourceSelectionCriteriaArgs;
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 BucketReplicationConfigurationRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final BucketReplicationConfigurationRuleArgs Empty = new BucketReplicationConfigurationRuleArgs();

    /**
     * Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used).
     * 
     */
    @Import(name="deleteMarkerReplicationStatus")
    private @Nullable Output deleteMarkerReplicationStatus;

    /**
     * @return Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used).
     * 
     */
    public Optional> deleteMarkerReplicationStatus() {
        return Optional.ofNullable(this.deleteMarkerReplicationStatus);
    }

    /**
     * Specifies the destination for the rule (documented below).
     * 
     */
    @Import(name="destination", required=true)
    private Output destination;

    /**
     * @return Specifies the destination for the rule (documented below).
     * 
     */
    public Output destination() {
        return this.destination;
    }

    /**
     * Filter that identifies subset of objects to which the replication rule applies (documented below).
     * 
     */
    @Import(name="filter")
    private @Nullable Output filter;

    /**
     * @return Filter that identifies subset of objects to which the replication rule applies (documented below).
     * 
     */
    public Optional> filter() {
        return Optional.ofNullable(this.filter);
    }

    /**
     * Unique identifier for the rule. Must be less than or equal to 255 characters in length.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Unique identifier for the rule. Must be less than or equal to 255 characters in length.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output prefix;

    /**
     * @return Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length.
     * 
     */
    public Optional> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    /**
     * Priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * Specifies special object selection criteria (documented below).
     * 
     */
    @Import(name="sourceSelectionCriteria")
    private @Nullable Output sourceSelectionCriteria;

    /**
     * @return Specifies special object selection criteria (documented below).
     * 
     */
    public Optional> sourceSelectionCriteria() {
        return Optional.ofNullable(this.sourceSelectionCriteria);
    }

    /**
     * Status of the rule. Either `Enabled` or `Disabled`. The rule is ignored if status is not Enabled.
     * 
     */
    @Import(name="status", required=true)
    private Output status;

    /**
     * @return Status of the rule. Either `Enabled` or `Disabled`. The rule is ignored if status is not Enabled.
     * 
     */
    public Output status() {
        return this.status;
    }

    private BucketReplicationConfigurationRuleArgs() {}

    private BucketReplicationConfigurationRuleArgs(BucketReplicationConfigurationRuleArgs $) {
        this.deleteMarkerReplicationStatus = $.deleteMarkerReplicationStatus;
        this.destination = $.destination;
        this.filter = $.filter;
        this.id = $.id;
        this.prefix = $.prefix;
        this.priority = $.priority;
        this.sourceSelectionCriteria = $.sourceSelectionCriteria;
        this.status = $.status;
    }

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

    public static final class Builder {
        private BucketReplicationConfigurationRuleArgs $;

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

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

        /**
         * @param deleteMarkerReplicationStatus Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used).
         * 
         * @return builder
         * 
         */
        public Builder deleteMarkerReplicationStatus(@Nullable Output deleteMarkerReplicationStatus) {
            $.deleteMarkerReplicationStatus = deleteMarkerReplicationStatus;
            return this;
        }

        /**
         * @param deleteMarkerReplicationStatus Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used).
         * 
         * @return builder
         * 
         */
        public Builder deleteMarkerReplicationStatus(String deleteMarkerReplicationStatus) {
            return deleteMarkerReplicationStatus(Output.of(deleteMarkerReplicationStatus));
        }

        /**
         * @param destination Specifies the destination for the rule (documented below).
         * 
         * @return builder
         * 
         */
        public Builder destination(Output destination) {
            $.destination = destination;
            return this;
        }

        /**
         * @param destination Specifies the destination for the rule (documented below).
         * 
         * @return builder
         * 
         */
        public Builder destination(BucketReplicationConfigurationRuleDestinationArgs destination) {
            return destination(Output.of(destination));
        }

        /**
         * @param filter Filter that identifies subset of objects to which the replication rule applies (documented below).
         * 
         * @return builder
         * 
         */
        public Builder filter(@Nullable Output filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter Filter that identifies subset of objects to which the replication rule applies (documented below).
         * 
         * @return builder
         * 
         */
        public Builder filter(BucketReplicationConfigurationRuleFilterArgs filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param id Unique identifier for the rule. Must be less than or equal to 255 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Unique identifier for the rule. Must be less than or equal to 255 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param prefix Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        /**
         * @param priority Priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param sourceSelectionCriteria Specifies special object selection criteria (documented below).
         * 
         * @return builder
         * 
         */
        public Builder sourceSelectionCriteria(@Nullable Output sourceSelectionCriteria) {
            $.sourceSelectionCriteria = sourceSelectionCriteria;
            return this;
        }

        /**
         * @param sourceSelectionCriteria Specifies special object selection criteria (documented below).
         * 
         * @return builder
         * 
         */
        public Builder sourceSelectionCriteria(BucketReplicationConfigurationRuleSourceSelectionCriteriaArgs sourceSelectionCriteria) {
            return sourceSelectionCriteria(Output.of(sourceSelectionCriteria));
        }

        /**
         * @param status Status of the rule. Either `Enabled` or `Disabled`. The rule is ignored if status is not Enabled.
         * 
         * @return builder
         * 
         */
        public Builder status(Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the rule. Either `Enabled` or `Disabled`. The rule is ignored if status is not Enabled.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public BucketReplicationConfigurationRuleArgs build() {
            if ($.destination == null) {
                throw new MissingRequiredPropertyException("BucketReplicationConfigurationRuleArgs", "destination");
            }
            if ($.status == null) {
                throw new MissingRequiredPropertyException("BucketReplicationConfigurationRuleArgs", "status");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy