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

com.pulumi.aws.s3.inputs.InventoryDestinationBucketArgs 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.InventoryDestinationBucketEncryptionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InventoryDestinationBucketArgs Empty = new InventoryDestinationBucketArgs();

    /**
     * ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * Amazon S3 bucket ARN of the destination.
     * 
     */
    @Import(name="bucketArn", required=true)
    private Output bucketArn;

    /**
     * @return Amazon S3 bucket ARN of the destination.
     * 
     */
    public Output bucketArn() {
        return this.bucketArn;
    }

    /**
     * Contains the type of server-side encryption to use to encrypt the inventory (documented below).
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return Contains the type of server-side encryption to use to encrypt the inventory (documented below).
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * Specifies the output format of the inventory results. Can be `CSV`, [`ORC`](https://orc.apache.org/) or [`Parquet`](https://parquet.apache.org/).
     * 
     */
    @Import(name="format", required=true)
    private Output format;

    /**
     * @return Specifies the output format of the inventory results. Can be `CSV`, [`ORC`](https://orc.apache.org/) or [`Parquet`](https://parquet.apache.org/).
     * 
     */
    public Output format() {
        return this.format;
    }

    /**
     * Prefix that is prepended to all inventory results.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output prefix;

    /**
     * @return Prefix that is prepended to all inventory results.
     * 
     */
    public Optional> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    private InventoryDestinationBucketArgs() {}

    private InventoryDestinationBucketArgs(InventoryDestinationBucketArgs $) {
        this.accountId = $.accountId;
        this.bucketArn = $.bucketArn;
        this.encryption = $.encryption;
        this.format = $.format;
        this.prefix = $.prefix;
    }

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

    public static final class Builder {
        private InventoryDestinationBucketArgs $;

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

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

        /**
         * @param accountId ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param bucketArn Amazon S3 bucket ARN of the destination.
         * 
         * @return builder
         * 
         */
        public Builder bucketArn(Output bucketArn) {
            $.bucketArn = bucketArn;
            return this;
        }

        /**
         * @param bucketArn Amazon S3 bucket ARN of the destination.
         * 
         * @return builder
         * 
         */
        public Builder bucketArn(String bucketArn) {
            return bucketArn(Output.of(bucketArn));
        }

        /**
         * @param encryption Contains the type of server-side encryption to use to encrypt the inventory (documented below).
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Contains the type of server-side encryption to use to encrypt the inventory (documented below).
         * 
         * @return builder
         * 
         */
        public Builder encryption(InventoryDestinationBucketEncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param format Specifies the output format of the inventory results. Can be `CSV`, [`ORC`](https://orc.apache.org/) or [`Parquet`](https://parquet.apache.org/).
         * 
         * @return builder
         * 
         */
        public Builder format(Output format) {
            $.format = format;
            return this;
        }

        /**
         * @param format Specifies the output format of the inventory results. Can be `CSV`, [`ORC`](https://orc.apache.org/) or [`Parquet`](https://parquet.apache.org/).
         * 
         * @return builder
         * 
         */
        public Builder format(String format) {
            return format(Output.of(format));
        }

        /**
         * @param prefix Prefix that is prepended to all inventory results.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Prefix that is prepended to all inventory results.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        public InventoryDestinationBucketArgs build() {
            if ($.bucketArn == null) {
                throw new MissingRequiredPropertyException("InventoryDestinationBucketArgs", "bucketArn");
            }
            if ($.format == null) {
                throw new MissingRequiredPropertyException("InventoryDestinationBucketArgs", "format");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy