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

com.pulumi.aws.kinesis.inputs.AnalyticsApplicationCloudwatchLoggingOptionsArgs 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.kinesis.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AnalyticsApplicationCloudwatchLoggingOptionsArgs Empty = new AnalyticsApplicationCloudwatchLoggingOptionsArgs();

    /**
     * The ARN of the Kinesis Analytics Application.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ARN of the Kinesis Analytics Application.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The ARN of the CloudWatch Log Stream.
     * 
     */
    @Import(name="logStreamArn", required=true)
    private Output logStreamArn;

    /**
     * @return The ARN of the CloudWatch Log Stream.
     * 
     */
    public Output logStreamArn() {
        return this.logStreamArn;
    }

    /**
     * The ARN of the IAM Role used to send application messages.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The ARN of the IAM Role used to send application messages.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    private AnalyticsApplicationCloudwatchLoggingOptionsArgs() {}

    private AnalyticsApplicationCloudwatchLoggingOptionsArgs(AnalyticsApplicationCloudwatchLoggingOptionsArgs $) {
        this.id = $.id;
        this.logStreamArn = $.logStreamArn;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private AnalyticsApplicationCloudwatchLoggingOptionsArgs $;

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

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

        /**
         * @param id The ARN of the Kinesis Analytics Application.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ARN of the Kinesis Analytics Application.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param logStreamArn The ARN of the CloudWatch Log Stream.
         * 
         * @return builder
         * 
         */
        public Builder logStreamArn(Output logStreamArn) {
            $.logStreamArn = logStreamArn;
            return this;
        }

        /**
         * @param logStreamArn The ARN of the CloudWatch Log Stream.
         * 
         * @return builder
         * 
         */
        public Builder logStreamArn(String logStreamArn) {
            return logStreamArn(Output.of(logStreamArn));
        }

        /**
         * @param roleArn The ARN of the IAM Role used to send application messages.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of the IAM Role used to send application messages.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        public AnalyticsApplicationCloudwatchLoggingOptionsArgs build() {
            if ($.logStreamArn == null) {
                throw new MissingRequiredPropertyException("AnalyticsApplicationCloudwatchLoggingOptionsArgs", "logStreamArn");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("AnalyticsApplicationCloudwatchLoggingOptionsArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy