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

com.pulumi.aws.kinesisanalyticsv2.ApplicationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.kinesisanalyticsv2;

import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationArgs;
import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationCloudwatchLoggingOptionsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplicationArgs Empty = new ApplicationArgs();

    /**
     * The application's configuration
     * 
     */
    @Import(name="applicationConfiguration")
    private @Nullable Output applicationConfiguration;

    /**
     * @return The application's configuration
     * 
     */
    public Optional> applicationConfiguration() {
        return Optional.ofNullable(this.applicationConfiguration);
    }

    /**
     * The application's mode. Valid values are `STREAMING`, `INTERACTIVE`.
     * 
     */
    @Import(name="applicationMode")
    private @Nullable Output applicationMode;

    /**
     * @return The application's mode. Valid values are `STREAMING`, `INTERACTIVE`.
     * 
     */
    public Optional> applicationMode() {
        return Optional.ofNullable(this.applicationMode);
    }

    /**
     * A CloudWatch log stream to monitor application configuration errors.
     * 
     */
    @Import(name="cloudwatchLoggingOptions")
    private @Nullable Output cloudwatchLoggingOptions;

    /**
     * @return A CloudWatch log stream to monitor application configuration errors.
     * 
     */
    public Optional> cloudwatchLoggingOptions() {
        return Optional.ofNullable(this.cloudwatchLoggingOptions);
    }

    /**
     * A summary description of the application.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A summary description of the application.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Whether to force stop an unresponsive Flink-based application.
     * 
     */
    @Import(name="forceStop")
    private @Nullable Output forceStop;

    /**
     * @return Whether to force stop an unresponsive Flink-based application.
     * 
     */
    public Optional> forceStop() {
        return Optional.ofNullable(this.forceStop);
    }

    /**
     * The name of the application.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the application.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The runtime environment for the application. Valid values: `SQL-1_0`, `FLINK-1_6`, `FLINK-1_8`, `FLINK-1_11`, `FLINK-1_13`, `FLINK-1_15`, `FLINK-1_18`, `FLINK-1_19`.
     * 
     */
    @Import(name="runtimeEnvironment", required=true)
    private Output runtimeEnvironment;

    /**
     * @return The runtime environment for the application. Valid values: `SQL-1_0`, `FLINK-1_6`, `FLINK-1_8`, `FLINK-1_11`, `FLINK-1_13`, `FLINK-1_15`, `FLINK-1_18`, `FLINK-1_19`.
     * 
     */
    public Output runtimeEnvironment() {
        return this.runtimeEnvironment;
    }

    /**
     * The ARN of the IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.
     * 
     */
    @Import(name="serviceExecutionRole", required=true)
    private Output serviceExecutionRole;

    /**
     * @return The ARN of the IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.
     * 
     */
    public Output serviceExecutionRole() {
        return this.serviceExecutionRole;
    }

    /**
     * Whether to start or stop the application.
     * 
     */
    @Import(name="startApplication")
    private @Nullable Output startApplication;

    /**
     * @return Whether to start or stop the application.
     * 
     */
    public Optional> startApplication() {
        return Optional.ofNullable(this.startApplication);
    }

    /**
     * A map of tags to assign to the application. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the application. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ApplicationArgs() {}

    private ApplicationArgs(ApplicationArgs $) {
        this.applicationConfiguration = $.applicationConfiguration;
        this.applicationMode = $.applicationMode;
        this.cloudwatchLoggingOptions = $.cloudwatchLoggingOptions;
        this.description = $.description;
        this.forceStop = $.forceStop;
        this.name = $.name;
        this.runtimeEnvironment = $.runtimeEnvironment;
        this.serviceExecutionRole = $.serviceExecutionRole;
        this.startApplication = $.startApplication;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ApplicationArgs $;

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

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

        /**
         * @param applicationConfiguration The application's configuration
         * 
         * @return builder
         * 
         */
        public Builder applicationConfiguration(@Nullable Output applicationConfiguration) {
            $.applicationConfiguration = applicationConfiguration;
            return this;
        }

        /**
         * @param applicationConfiguration The application's configuration
         * 
         * @return builder
         * 
         */
        public Builder applicationConfiguration(ApplicationApplicationConfigurationArgs applicationConfiguration) {
            return applicationConfiguration(Output.of(applicationConfiguration));
        }

        /**
         * @param applicationMode The application's mode. Valid values are `STREAMING`, `INTERACTIVE`.
         * 
         * @return builder
         * 
         */
        public Builder applicationMode(@Nullable Output applicationMode) {
            $.applicationMode = applicationMode;
            return this;
        }

        /**
         * @param applicationMode The application's mode. Valid values are `STREAMING`, `INTERACTIVE`.
         * 
         * @return builder
         * 
         */
        public Builder applicationMode(String applicationMode) {
            return applicationMode(Output.of(applicationMode));
        }

        /**
         * @param cloudwatchLoggingOptions A CloudWatch log stream to monitor application configuration errors.
         * 
         * @return builder
         * 
         */
        public Builder cloudwatchLoggingOptions(@Nullable Output cloudwatchLoggingOptions) {
            $.cloudwatchLoggingOptions = cloudwatchLoggingOptions;
            return this;
        }

        /**
         * @param cloudwatchLoggingOptions A CloudWatch log stream to monitor application configuration errors.
         * 
         * @return builder
         * 
         */
        public Builder cloudwatchLoggingOptions(ApplicationCloudwatchLoggingOptionsArgs cloudwatchLoggingOptions) {
            return cloudwatchLoggingOptions(Output.of(cloudwatchLoggingOptions));
        }

        /**
         * @param description A summary description of the application.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A summary description of the application.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param forceStop Whether to force stop an unresponsive Flink-based application.
         * 
         * @return builder
         * 
         */
        public Builder forceStop(@Nullable Output forceStop) {
            $.forceStop = forceStop;
            return this;
        }

        /**
         * @param forceStop Whether to force stop an unresponsive Flink-based application.
         * 
         * @return builder
         * 
         */
        public Builder forceStop(Boolean forceStop) {
            return forceStop(Output.of(forceStop));
        }

        /**
         * @param name The name of the application.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the application.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param runtimeEnvironment The runtime environment for the application. Valid values: `SQL-1_0`, `FLINK-1_6`, `FLINK-1_8`, `FLINK-1_11`, `FLINK-1_13`, `FLINK-1_15`, `FLINK-1_18`, `FLINK-1_19`.
         * 
         * @return builder
         * 
         */
        public Builder runtimeEnvironment(Output runtimeEnvironment) {
            $.runtimeEnvironment = runtimeEnvironment;
            return this;
        }

        /**
         * @param runtimeEnvironment The runtime environment for the application. Valid values: `SQL-1_0`, `FLINK-1_6`, `FLINK-1_8`, `FLINK-1_11`, `FLINK-1_13`, `FLINK-1_15`, `FLINK-1_18`, `FLINK-1_19`.
         * 
         * @return builder
         * 
         */
        public Builder runtimeEnvironment(String runtimeEnvironment) {
            return runtimeEnvironment(Output.of(runtimeEnvironment));
        }

        /**
         * @param serviceExecutionRole The ARN of the IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.
         * 
         * @return builder
         * 
         */
        public Builder serviceExecutionRole(Output serviceExecutionRole) {
            $.serviceExecutionRole = serviceExecutionRole;
            return this;
        }

        /**
         * @param serviceExecutionRole The ARN of the IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.
         * 
         * @return builder
         * 
         */
        public Builder serviceExecutionRole(String serviceExecutionRole) {
            return serviceExecutionRole(Output.of(serviceExecutionRole));
        }

        /**
         * @param startApplication Whether to start or stop the application.
         * 
         * @return builder
         * 
         */
        public Builder startApplication(@Nullable Output startApplication) {
            $.startApplication = startApplication;
            return this;
        }

        /**
         * @param startApplication Whether to start or stop the application.
         * 
         * @return builder
         * 
         */
        public Builder startApplication(Boolean startApplication) {
            return startApplication(Output.of(startApplication));
        }

        /**
         * @param tags A map of tags to assign to the application. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the application. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ApplicationArgs build() {
            if ($.runtimeEnvironment == null) {
                throw new MissingRequiredPropertyException("ApplicationArgs", "runtimeEnvironment");
            }
            if ($.serviceExecutionRole == null) {
                throw new MissingRequiredPropertyException("ApplicationArgs", "serviceExecutionRole");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy