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

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

// *** 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.TargetObjectKeyFormatArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of LoggingConfiguration
 * 
 */
public final class LoggingConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final LoggingConfigurationArgs Empty = new LoggingConfigurationArgs();

    /**
     * The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.
     * 
     */
    @Import(name="destinationBucketName")
    private @Nullable Output destinationBucketName;

    /**
     * @return The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.
     * 
     */
    public Optional> destinationBucketName() {
        return Optional.ofNullable(this.destinationBucketName);
    }

    /**
     * A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
     * 
     */
    @Import(name="logFilePrefix")
    private @Nullable Output logFilePrefix;

    /**
     * @return A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
     * 
     */
    public Optional> logFilePrefix() {
        return Optional.ofNullable(this.logFilePrefix);
    }

    /**
     * Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed. Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.
     * 
     */
    @Import(name="targetObjectKeyFormat")
    private @Nullable Output targetObjectKeyFormat;

    /**
     * @return Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed. Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.
     * 
     */
    public Optional> targetObjectKeyFormat() {
        return Optional.ofNullable(this.targetObjectKeyFormat);
    }

    private LoggingConfigurationArgs() {}

    private LoggingConfigurationArgs(LoggingConfigurationArgs $) {
        this.destinationBucketName = $.destinationBucketName;
        this.logFilePrefix = $.logFilePrefix;
        this.targetObjectKeyFormat = $.targetObjectKeyFormat;
    }

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

    public static final class Builder {
        private LoggingConfigurationArgs $;

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

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

        /**
         * @param destinationBucketName The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.
         * 
         * @return builder
         * 
         */
        public Builder destinationBucketName(@Nullable Output destinationBucketName) {
            $.destinationBucketName = destinationBucketName;
            return this;
        }

        /**
         * @param destinationBucketName The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.
         * 
         * @return builder
         * 
         */
        public Builder destinationBucketName(String destinationBucketName) {
            return destinationBucketName(Output.of(destinationBucketName));
        }

        /**
         * @param logFilePrefix A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
         * 
         * @return builder
         * 
         */
        public Builder logFilePrefix(@Nullable Output logFilePrefix) {
            $.logFilePrefix = logFilePrefix;
            return this;
        }

        /**
         * @param logFilePrefix A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
         * 
         * @return builder
         * 
         */
        public Builder logFilePrefix(String logFilePrefix) {
            return logFilePrefix(Output.of(logFilePrefix));
        }

        /**
         * @param targetObjectKeyFormat Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed. Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.
         * 
         * @return builder
         * 
         */
        public Builder targetObjectKeyFormat(@Nullable Output targetObjectKeyFormat) {
            $.targetObjectKeyFormat = targetObjectKeyFormat;
            return this;
        }

        /**
         * @param targetObjectKeyFormat Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed. Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.
         * 
         * @return builder
         * 
         */
        public Builder targetObjectKeyFormat(TargetObjectKeyFormatArgs targetObjectKeyFormat) {
            return targetObjectKeyFormat(Output.of(targetObjectKeyFormat));
        }

        public LoggingConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy