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

com.pulumi.azurenative.awsconnector.inputs.CloudWatchLogsConfigArgs 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.LogsConfigStatusTypeEnumValueArgs;
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 CloudWatchLogsConfig
 * 
 */
public final class CloudWatchLogsConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final CloudWatchLogsConfigArgs Empty = new CloudWatchLogsConfigArgs();

    /**
     * <p> The group name of the logs in CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
     * 
     */
    @Import(name="groupName")
    private @Nullable Output groupName;

    /**
     * @return <p> The group name of the logs in CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
     * 
     */
    public Optional> groupName() {
        return Optional.ofNullable(this.groupName);
    }

    /**
     * <p>The current status of the logs in CloudWatch Logs for a build project. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: CloudWatch Logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: CloudWatch 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 logs in CloudWatch Logs for a build project. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: CloudWatch Logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * <p> The prefix of the stream name of the CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
     * 
     */
    @Import(name="streamName")
    private @Nullable Output streamName;

    /**
     * @return <p> The prefix of the stream name of the CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
     * 
     */
    public Optional> streamName() {
        return Optional.ofNullable(this.streamName);
    }

    private CloudWatchLogsConfigArgs() {}

    private CloudWatchLogsConfigArgs(CloudWatchLogsConfigArgs $) {
        this.groupName = $.groupName;
        this.status = $.status;
        this.streamName = $.streamName;
    }

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

    public static final class Builder {
        private CloudWatchLogsConfigArgs $;

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

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

        /**
         * @param groupName <p> The group name of the logs in CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
         * 
         * @return builder
         * 
         */
        public Builder groupName(@Nullable Output groupName) {
            $.groupName = groupName;
            return this;
        }

        /**
         * @param groupName <p> The group name of the logs in CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
         * 
         * @return builder
         * 
         */
        public Builder groupName(String groupName) {
            return groupName(Output.of(groupName));
        }

        /**
         * @param status <p>The current status of the logs in CloudWatch Logs for a build project. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: CloudWatch Logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: CloudWatch 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 logs in CloudWatch Logs for a build project. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: CloudWatch Logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: CloudWatch Logs are not enabled for this build project.</p> </li> </ul>
         * 
         * @return builder
         * 
         */
        public Builder status(LogsConfigStatusTypeEnumValueArgs status) {
            return status(Output.of(status));
        }

        /**
         * @param streamName <p> The prefix of the stream name of the CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
         * 
         * @return builder
         * 
         */
        public Builder streamName(@Nullable Output streamName) {
            $.streamName = streamName;
            return this;
        }

        /**
         * @param streamName <p> The prefix of the stream name of the CloudWatch Logs. For more information, see <a href='https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html'>Working with Log Groups and Log Streams</a>. </p>
         * 
         * @return builder
         * 
         */
        public Builder streamName(String streamName) {
            return streamName(Output.of(streamName));
        }

        public CloudWatchLogsConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy