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

com.pulumi.aws.s3.inputs.BucketReplicationConfigurationArgs 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.60.0-alpha.1731982519
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.BucketReplicationConfigurationRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final BucketReplicationConfigurationArgs Empty = new BucketReplicationConfigurationArgs();

    /**
     * The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
     * 
     */
    @Import(name="role", required=true)
    private Output role;

    /**
     * @return The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
     * 
     */
    public Output role() {
        return this.role;
    }

    /**
     * Specifies the rules managing the replication (documented below).
     * 
     */
    @Import(name="rules", required=true)
    private Output> rules;

    /**
     * @return Specifies the rules managing the replication (documented below).
     * 
     */
    public Output> rules() {
        return this.rules;
    }

    private BucketReplicationConfigurationArgs() {}

    private BucketReplicationConfigurationArgs(BucketReplicationConfigurationArgs $) {
        this.role = $.role;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private BucketReplicationConfigurationArgs $;

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

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

        /**
         * @param role The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
         * 
         * @return builder
         * 
         */
        public Builder role(Output role) {
            $.role = role;
            return this;
        }

        /**
         * @param role The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
         * 
         * @return builder
         * 
         */
        public Builder role(String role) {
            return role(Output.of(role));
        }

        /**
         * @param rules Specifies the rules managing the replication (documented below).
         * 
         * @return builder
         * 
         */
        public Builder rules(Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules Specifies the rules managing the replication (documented below).
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules Specifies the rules managing the replication (documented below).
         * 
         * @return builder
         * 
         */
        public Builder rules(BucketReplicationConfigurationRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public BucketReplicationConfigurationArgs build() {
            if ($.role == null) {
                throw new MissingRequiredPropertyException("BucketReplicationConfigurationArgs", "role");
            }
            if ($.rules == null) {
                throw new MissingRequiredPropertyException("BucketReplicationConfigurationArgs", "rules");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy