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

com.pulumi.azurenative.awsconnector.inputs.S3LogsConfigArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.BucketOwnerAccessEnumValueArgs;
import com.pulumi.azurenative.awsconnector.inputs.LogsConfigStatusTypeEnumValueArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of S3LogsConfig
 * 
 */
public final class S3LogsConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final S3LogsConfigArgs Empty = new S3LogsConfigArgs();

    /**
     * Property bucketOwnerAccess
     * 
     */
    @Import(name="bucketOwnerAccess")
    private @Nullable Output bucketOwnerAccess;

    /**
     * @return Property bucketOwnerAccess
     * 
     */
    public Optional> bucketOwnerAccess() {
        return Optional.ofNullable(this.bucketOwnerAccess);
    }

    /**
     * <p> Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted. </p>
     * 
     */
    @Import(name="encryptionDisabled")
    private @Nullable Output encryptionDisabled;

    /**
     * @return <p> Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted. </p>
     * 
     */
    public Optional> encryptionDisabled() {
        return Optional.ofNullable(this.encryptionDisabled);
    }

    /**
     * <p> The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is <code>my-bucket</code>, and your path prefix is <code>build-log</code>, then acceptable formats are <code>my-bucket/build-log</code> or <code>arn:aws:s3:::my-bucket/build-log</code>. </p>
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return <p> The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is <code>my-bucket</code>, and your path prefix is <code>build-log</code>, then acceptable formats are <code>my-bucket/build-log</code> or <code>arn:aws:s3:::my-bucket/build-log</code>. </p>
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * <p>The current status of the S3 build logs. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: S3 build logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: S3 build logs are not enabled for this build project.</p> </li> </ul>
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return <p>The current status of the S3 build logs. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: S3 build logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: S3 build logs are not enabled for this build project.</p> </li> </ul>
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private S3LogsConfigArgs() {}

    private S3LogsConfigArgs(S3LogsConfigArgs $) {
        this.bucketOwnerAccess = $.bucketOwnerAccess;
        this.encryptionDisabled = $.encryptionDisabled;
        this.location = $.location;
        this.status = $.status;
    }

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

    public static final class Builder {
        private S3LogsConfigArgs $;

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

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

        /**
         * @param bucketOwnerAccess Property bucketOwnerAccess
         * 
         * @return builder
         * 
         */
        public Builder bucketOwnerAccess(@Nullable Output bucketOwnerAccess) {
            $.bucketOwnerAccess = bucketOwnerAccess;
            return this;
        }

        /**
         * @param bucketOwnerAccess Property bucketOwnerAccess
         * 
         * @return builder
         * 
         */
        public Builder bucketOwnerAccess(BucketOwnerAccessEnumValueArgs bucketOwnerAccess) {
            return bucketOwnerAccess(Output.of(bucketOwnerAccess));
        }

        /**
         * @param encryptionDisabled <p> Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted. </p>
         * 
         * @return builder
         * 
         */
        public Builder encryptionDisabled(@Nullable Output encryptionDisabled) {
            $.encryptionDisabled = encryptionDisabled;
            return this;
        }

        /**
         * @param encryptionDisabled <p> Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted. </p>
         * 
         * @return builder
         * 
         */
        public Builder encryptionDisabled(Boolean encryptionDisabled) {
            return encryptionDisabled(Output.of(encryptionDisabled));
        }

        /**
         * @param location <p> The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is <code>my-bucket</code>, and your path prefix is <code>build-log</code>, then acceptable formats are <code>my-bucket/build-log</code> or <code>arn:aws:s3:::my-bucket/build-log</code>. </p>
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location <p> The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is <code>my-bucket</code>, and your path prefix is <code>build-log</code>, then acceptable formats are <code>my-bucket/build-log</code> or <code>arn:aws:s3:::my-bucket/build-log</code>. </p>
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param status <p>The current status of the S3 build logs. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: S3 build logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: S3 build logs are not enabled for this build project.</p> </li> </ul>
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status <p>The current status of the S3 build logs. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: S3 build logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: S3 build logs are not enabled for this build project.</p> </li> </ul>
         * 
         * @return builder
         * 
         */
        public Builder status(LogsConfigStatusTypeEnumValueArgs status) {
            return status(Output.of(status));
        }

        public S3LogsConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy