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

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

There is a newer version: 2.78.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.FieldLogLevelEnumValueArgs;
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 LogConfig
 * 
 */
public final class LogConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogConfigArgs Empty = new LogConfigArgs();

    /**
     * <p>The service role that AppSync assumes to publish to CloudWatch logs in your account.</p>
     * 
     */
    @Import(name="cloudWatchLogsRoleArn")
    private @Nullable Output cloudWatchLogsRoleArn;

    /**
     * @return <p>The service role that AppSync assumes to publish to CloudWatch logs in your account.</p>
     * 
     */
    public Optional> cloudWatchLogsRoleArn() {
        return Optional.ofNullable(this.cloudWatchLogsRoleArn);
    }

    /**
     * <p>Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.</p>
     * 
     */
    @Import(name="excludeVerboseContent")
    private @Nullable Output excludeVerboseContent;

    /**
     * @return <p>Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.</p>
     * 
     */
    public Optional> excludeVerboseContent() {
        return Optional.ofNullable(this.excludeVerboseContent);
    }

    /**
     * <p>The field logging level. Values can be NONE, ERROR, or ALL.</p> <ul> <li> <p> <b>NONE</b>: No field-level logs are captured.</p> </li> <li> <p> <b>ERROR</b>: Logs the following information only for the fields that are in error:</p> <ul> <li> <p>The error section in the server response.</p> </li> <li> <p>Field-level errors.</p> </li> <li> <p>The generated request/response functions that got resolved for error fields.</p> </li> </ul> </li> <li> <p> <b>ALL</b>: The following information is logged for all fields in the query:</p> <ul> <li> <p>Field-level tracing information.</p> </li> <li> <p>The generated request/response functions that got resolved for each field.</p> </li> </ul> </li> </ul>
     * 
     */
    @Import(name="fieldLogLevel")
    private @Nullable Output fieldLogLevel;

    /**
     * @return <p>The field logging level. Values can be NONE, ERROR, or ALL.</p> <ul> <li> <p> <b>NONE</b>: No field-level logs are captured.</p> </li> <li> <p> <b>ERROR</b>: Logs the following information only for the fields that are in error:</p> <ul> <li> <p>The error section in the server response.</p> </li> <li> <p>Field-level errors.</p> </li> <li> <p>The generated request/response functions that got resolved for error fields.</p> </li> </ul> </li> <li> <p> <b>ALL</b>: The following information is logged for all fields in the query:</p> <ul> <li> <p>Field-level tracing information.</p> </li> <li> <p>The generated request/response functions that got resolved for each field.</p> </li> </ul> </li> </ul>
     * 
     */
    public Optional> fieldLogLevel() {
        return Optional.ofNullable(this.fieldLogLevel);
    }

    private LogConfigArgs() {}

    private LogConfigArgs(LogConfigArgs $) {
        this.cloudWatchLogsRoleArn = $.cloudWatchLogsRoleArn;
        this.excludeVerboseContent = $.excludeVerboseContent;
        this.fieldLogLevel = $.fieldLogLevel;
    }

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

    public static final class Builder {
        private LogConfigArgs $;

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

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

        /**
         * @param cloudWatchLogsRoleArn <p>The service role that AppSync assumes to publish to CloudWatch logs in your account.</p>
         * 
         * @return builder
         * 
         */
        public Builder cloudWatchLogsRoleArn(@Nullable Output cloudWatchLogsRoleArn) {
            $.cloudWatchLogsRoleArn = cloudWatchLogsRoleArn;
            return this;
        }

        /**
         * @param cloudWatchLogsRoleArn <p>The service role that AppSync assumes to publish to CloudWatch logs in your account.</p>
         * 
         * @return builder
         * 
         */
        public Builder cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) {
            return cloudWatchLogsRoleArn(Output.of(cloudWatchLogsRoleArn));
        }

        /**
         * @param excludeVerboseContent <p>Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.</p>
         * 
         * @return builder
         * 
         */
        public Builder excludeVerboseContent(@Nullable Output excludeVerboseContent) {
            $.excludeVerboseContent = excludeVerboseContent;
            return this;
        }

        /**
         * @param excludeVerboseContent <p>Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.</p>
         * 
         * @return builder
         * 
         */
        public Builder excludeVerboseContent(Boolean excludeVerboseContent) {
            return excludeVerboseContent(Output.of(excludeVerboseContent));
        }

        /**
         * @param fieldLogLevel <p>The field logging level. Values can be NONE, ERROR, or ALL.</p> <ul> <li> <p> <b>NONE</b>: No field-level logs are captured.</p> </li> <li> <p> <b>ERROR</b>: Logs the following information only for the fields that are in error:</p> <ul> <li> <p>The error section in the server response.</p> </li> <li> <p>Field-level errors.</p> </li> <li> <p>The generated request/response functions that got resolved for error fields.</p> </li> </ul> </li> <li> <p> <b>ALL</b>: The following information is logged for all fields in the query:</p> <ul> <li> <p>Field-level tracing information.</p> </li> <li> <p>The generated request/response functions that got resolved for each field.</p> </li> </ul> </li> </ul>
         * 
         * @return builder
         * 
         */
        public Builder fieldLogLevel(@Nullable Output fieldLogLevel) {
            $.fieldLogLevel = fieldLogLevel;
            return this;
        }

        /**
         * @param fieldLogLevel <p>The field logging level. Values can be NONE, ERROR, or ALL.</p> <ul> <li> <p> <b>NONE</b>: No field-level logs are captured.</p> </li> <li> <p> <b>ERROR</b>: Logs the following information only for the fields that are in error:</p> <ul> <li> <p>The error section in the server response.</p> </li> <li> <p>Field-level errors.</p> </li> <li> <p>The generated request/response functions that got resolved for error fields.</p> </li> </ul> </li> <li> <p> <b>ALL</b>: The following information is logged for all fields in the query:</p> <ul> <li> <p>Field-level tracing information.</p> </li> <li> <p>The generated request/response functions that got resolved for each field.</p> </li> </ul> </li> </ul>
         * 
         * @return builder
         * 
         */
        public Builder fieldLogLevel(FieldLogLevelEnumValueArgs fieldLogLevel) {
            return fieldLogLevel(Output.of(fieldLogLevel));
        }

        public LogConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy