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

com.pulumi.aws.pipes.inputs.PipeLogConfigurationArgs 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.aws.pipes.inputs;

import com.pulumi.aws.pipes.inputs.PipeLogConfigurationCloudwatchLogsLogDestinationArgs;
import com.pulumi.aws.pipes.inputs.PipeLogConfigurationFirehoseLogDestinationArgs;
import com.pulumi.aws.pipes.inputs.PipeLogConfigurationS3LogDestinationArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PipeLogConfigurationArgs Empty = new PipeLogConfigurationArgs();

    /**
     * Amazon CloudWatch Logs logging configuration settings for the pipe. Detailed below.
     * 
     */
    @Import(name="cloudwatchLogsLogDestination")
    private @Nullable Output cloudwatchLogsLogDestination;

    /**
     * @return Amazon CloudWatch Logs logging configuration settings for the pipe. Detailed below.
     * 
     */
    public Optional> cloudwatchLogsLogDestination() {
        return Optional.ofNullable(this.cloudwatchLogsLogDestination);
    }

    /**
     * Amazon Kinesis Data Firehose logging configuration settings for the pipe. Detailed below.
     * 
     */
    @Import(name="firehoseLogDestination")
    private @Nullable Output firehoseLogDestination;

    /**
     * @return Amazon Kinesis Data Firehose logging configuration settings for the pipe. Detailed below.
     * 
     */
    public Optional> firehoseLogDestination() {
        return Optional.ofNullable(this.firehoseLogDestination);
    }

    /**
     * String list that specifies whether the execution data (specifically, the `payload`, `awsRequest`, and `awsResponse` fields) is included in the log messages for this pipe. This applies to all log destinations for the pipe. Valid values `ALL`.
     * 
     */
    @Import(name="includeExecutionDatas")
    private @Nullable Output> includeExecutionDatas;

    /**
     * @return String list that specifies whether the execution data (specifically, the `payload`, `awsRequest`, and `awsResponse` fields) is included in the log messages for this pipe. This applies to all log destinations for the pipe. Valid values `ALL`.
     * 
     */
    public Optional>> includeExecutionDatas() {
        return Optional.ofNullable(this.includeExecutionDatas);
    }

    /**
     * The level of logging detail to include. Valid values `OFF`, `ERROR`, `INFO` and `TRACE`.
     * 
     */
    @Import(name="level", required=true)
    private Output level;

    /**
     * @return The level of logging detail to include. Valid values `OFF`, `ERROR`, `INFO` and `TRACE`.
     * 
     */
    public Output level() {
        return this.level;
    }

    /**
     * Amazon S3 logging configuration settings for the pipe. Detailed below.
     * 
     */
    @Import(name="s3LogDestination")
    private @Nullable Output s3LogDestination;

    /**
     * @return Amazon S3 logging configuration settings for the pipe. Detailed below.
     * 
     */
    public Optional> s3LogDestination() {
        return Optional.ofNullable(this.s3LogDestination);
    }

    private PipeLogConfigurationArgs() {}

    private PipeLogConfigurationArgs(PipeLogConfigurationArgs $) {
        this.cloudwatchLogsLogDestination = $.cloudwatchLogsLogDestination;
        this.firehoseLogDestination = $.firehoseLogDestination;
        this.includeExecutionDatas = $.includeExecutionDatas;
        this.level = $.level;
        this.s3LogDestination = $.s3LogDestination;
    }

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

    public static final class Builder {
        private PipeLogConfigurationArgs $;

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

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

        /**
         * @param cloudwatchLogsLogDestination Amazon CloudWatch Logs logging configuration settings for the pipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder cloudwatchLogsLogDestination(@Nullable Output cloudwatchLogsLogDestination) {
            $.cloudwatchLogsLogDestination = cloudwatchLogsLogDestination;
            return this;
        }

        /**
         * @param cloudwatchLogsLogDestination Amazon CloudWatch Logs logging configuration settings for the pipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder cloudwatchLogsLogDestination(PipeLogConfigurationCloudwatchLogsLogDestinationArgs cloudwatchLogsLogDestination) {
            return cloudwatchLogsLogDestination(Output.of(cloudwatchLogsLogDestination));
        }

        /**
         * @param firehoseLogDestination Amazon Kinesis Data Firehose logging configuration settings for the pipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder firehoseLogDestination(@Nullable Output firehoseLogDestination) {
            $.firehoseLogDestination = firehoseLogDestination;
            return this;
        }

        /**
         * @param firehoseLogDestination Amazon Kinesis Data Firehose logging configuration settings for the pipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder firehoseLogDestination(PipeLogConfigurationFirehoseLogDestinationArgs firehoseLogDestination) {
            return firehoseLogDestination(Output.of(firehoseLogDestination));
        }

        /**
         * @param includeExecutionDatas String list that specifies whether the execution data (specifically, the `payload`, `awsRequest`, and `awsResponse` fields) is included in the log messages for this pipe. This applies to all log destinations for the pipe. Valid values `ALL`.
         * 
         * @return builder
         * 
         */
        public Builder includeExecutionDatas(@Nullable Output> includeExecutionDatas) {
            $.includeExecutionDatas = includeExecutionDatas;
            return this;
        }

        /**
         * @param includeExecutionDatas String list that specifies whether the execution data (specifically, the `payload`, `awsRequest`, and `awsResponse` fields) is included in the log messages for this pipe. This applies to all log destinations for the pipe. Valid values `ALL`.
         * 
         * @return builder
         * 
         */
        public Builder includeExecutionDatas(List includeExecutionDatas) {
            return includeExecutionDatas(Output.of(includeExecutionDatas));
        }

        /**
         * @param includeExecutionDatas String list that specifies whether the execution data (specifically, the `payload`, `awsRequest`, and `awsResponse` fields) is included in the log messages for this pipe. This applies to all log destinations for the pipe. Valid values `ALL`.
         * 
         * @return builder
         * 
         */
        public Builder includeExecutionDatas(String... includeExecutionDatas) {
            return includeExecutionDatas(List.of(includeExecutionDatas));
        }

        /**
         * @param level The level of logging detail to include. Valid values `OFF`, `ERROR`, `INFO` and `TRACE`.
         * 
         * @return builder
         * 
         */
        public Builder level(Output level) {
            $.level = level;
            return this;
        }

        /**
         * @param level The level of logging detail to include. Valid values `OFF`, `ERROR`, `INFO` and `TRACE`.
         * 
         * @return builder
         * 
         */
        public Builder level(String level) {
            return level(Output.of(level));
        }

        /**
         * @param s3LogDestination Amazon S3 logging configuration settings for the pipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder s3LogDestination(@Nullable Output s3LogDestination) {
            $.s3LogDestination = s3LogDestination;
            return this;
        }

        /**
         * @param s3LogDestination Amazon S3 logging configuration settings for the pipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder s3LogDestination(PipeLogConfigurationS3LogDestinationArgs s3LogDestination) {
            return s3LogDestination(Output.of(s3LogDestination));
        }

        public PipeLogConfigurationArgs build() {
            if ($.level == null) {
                throw new MissingRequiredPropertyException("PipeLogConfigurationArgs", "level");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy