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

com.pulumi.azurenative.awsconnector.inputs.LoggingConfigArgs 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.enums.LoggingConfigApplicationLogLevel;
import com.pulumi.azurenative.awsconnector.enums.LoggingConfigLogFormat;
import com.pulumi.azurenative.awsconnector.enums.LoggingConfigProtocol;
import com.pulumi.azurenative.awsconnector.enums.LoggingConfigSystemLogLevel;
import com.pulumi.core.Either;
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 LoggingConfig
 * 
 */
public final class LoggingConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final LoggingConfigArgs Empty = new LoggingConfigArgs();

    /**
     * Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
     * 
     */
    @Import(name="applicationLogLevel")
    private @Nullable Output> applicationLogLevel;

    /**
     * @return Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
     * 
     */
    public Optional>> applicationLogLevel() {
        return Optional.ofNullable(this.applicationLogLevel);
    }

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

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

    /**
     * The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
     * 
     */
    @Import(name="logFormat")
    private @Nullable Output> logFormat;

    /**
     * @return The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
     * 
     */
    public Optional>> logFormat() {
        return Optional.ofNullable(this.logFormat);
    }

    /**
     * The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.
     * 
     */
    @Import(name="logGroup")
    private @Nullable Output logGroup;

    /**
     * @return The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.
     * 
     */
    public Optional> logGroup() {
        return Optional.ofNullable(this.logGroup);
    }

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

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

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

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

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

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

    /**
     * Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
     * 
     */
    @Import(name="systemLogLevel")
    private @Nullable Output> systemLogLevel;

    /**
     * @return Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
     * 
     */
    public Optional>> systemLogLevel() {
        return Optional.ofNullable(this.systemLogLevel);
    }

    private LoggingConfigArgs() {}

    private LoggingConfigArgs(LoggingConfigArgs $) {
        this.applicationLogLevel = $.applicationLogLevel;
        this.failureFeedbackRoleArn = $.failureFeedbackRoleArn;
        this.logFormat = $.logFormat;
        this.logGroup = $.logGroup;
        this.protocol = $.protocol;
        this.successFeedbackRoleArn = $.successFeedbackRoleArn;
        this.successFeedbackSampleRate = $.successFeedbackSampleRate;
        this.systemLogLevel = $.systemLogLevel;
    }

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

    public static final class Builder {
        private LoggingConfigArgs $;

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

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

        /**
         * @param applicationLogLevel Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogLevel(@Nullable Output> applicationLogLevel) {
            $.applicationLogLevel = applicationLogLevel;
            return this;
        }

        /**
         * @param applicationLogLevel Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogLevel(Either applicationLogLevel) {
            return applicationLogLevel(Output.of(applicationLogLevel));
        }

        /**
         * @param applicationLogLevel Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogLevel(String applicationLogLevel) {
            return applicationLogLevel(Either.ofLeft(applicationLogLevel));
        }

        /**
         * @param applicationLogLevel Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogLevel(LoggingConfigApplicationLogLevel applicationLogLevel) {
            return applicationLogLevel(Either.ofRight(applicationLogLevel));
        }

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

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

        /**
         * @param logFormat The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(@Nullable Output> logFormat) {
            $.logFormat = logFormat;
            return this;
        }

        /**
         * @param logFormat The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(Either logFormat) {
            return logFormat(Output.of(logFormat));
        }

        /**
         * @param logFormat The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(String logFormat) {
            return logFormat(Either.ofLeft(logFormat));
        }

        /**
         * @param logFormat The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(LoggingConfigLogFormat logFormat) {
            return logFormat(Either.ofRight(logFormat));
        }

        /**
         * @param logGroup The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.
         * 
         * @return builder
         * 
         */
        public Builder logGroup(@Nullable Output logGroup) {
            $.logGroup = logGroup;
            return this;
        }

        /**
         * @param logGroup The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.
         * 
         * @return builder
         * 
         */
        public Builder logGroup(String logGroup) {
            return logGroup(Output.of(logGroup));
        }

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

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

        /**
         * @param protocol Property protocol
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Either.ofLeft(protocol));
        }

        /**
         * @param protocol Property protocol
         * 
         * @return builder
         * 
         */
        public Builder protocol(LoggingConfigProtocol protocol) {
            return protocol(Either.ofRight(protocol));
        }

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

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

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

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

        /**
         * @param systemLogLevel Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder systemLogLevel(@Nullable Output> systemLogLevel) {
            $.systemLogLevel = systemLogLevel;
            return this;
        }

        /**
         * @param systemLogLevel Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder systemLogLevel(Either systemLogLevel) {
            return systemLogLevel(Output.of(systemLogLevel));
        }

        /**
         * @param systemLogLevel Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder systemLogLevel(String systemLogLevel) {
            return systemLogLevel(Either.ofLeft(systemLogLevel));
        }

        /**
         * @param systemLogLevel Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
         * 
         * @return builder
         * 
         */
        public Builder systemLogLevel(LoggingConfigSystemLogLevel systemLogLevel) {
            return systemLogLevel(Either.ofRight(systemLogLevel));
        }

        public LoggingConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy