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

com.pulumi.aws.iot.inputs.TopicRuleIotAnalyticArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
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.aws.iot.inputs;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicRuleIotAnalyticArgs Empty = new TopicRuleIotAnalyticArgs();

    /**
     * The payload that contains a JSON array of records will be sent to IoT Analytics via a batch call.
     * 
     */
    @Import(name="batchMode")
    private @Nullable Output batchMode;

    /**
     * @return The payload that contains a JSON array of records will be sent to IoT Analytics via a batch call.
     * 
     */
    public Optional> batchMode() {
        return Optional.ofNullable(this.batchMode);
    }

    /**
     * Name of AWS IOT Analytics channel.
     * 
     */
    @Import(name="channelName", required=true)
    private Output channelName;

    /**
     * @return Name of AWS IOT Analytics channel.
     * 
     */
    public Output channelName() {
        return this.channelName;
    }

    /**
     * The ARN of the IAM role that grants access.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The ARN of the IAM role that grants access.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    private TopicRuleIotAnalyticArgs() {}

    private TopicRuleIotAnalyticArgs(TopicRuleIotAnalyticArgs $) {
        this.batchMode = $.batchMode;
        this.channelName = $.channelName;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private TopicRuleIotAnalyticArgs $;

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

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

        /**
         * @param batchMode The payload that contains a JSON array of records will be sent to IoT Analytics via a batch call.
         * 
         * @return builder
         * 
         */
        public Builder batchMode(@Nullable Output batchMode) {
            $.batchMode = batchMode;
            return this;
        }

        /**
         * @param batchMode The payload that contains a JSON array of records will be sent to IoT Analytics via a batch call.
         * 
         * @return builder
         * 
         */
        public Builder batchMode(Boolean batchMode) {
            return batchMode(Output.of(batchMode));
        }

        /**
         * @param channelName Name of AWS IOT Analytics channel.
         * 
         * @return builder
         * 
         */
        public Builder channelName(Output channelName) {
            $.channelName = channelName;
            return this;
        }

        /**
         * @param channelName Name of AWS IOT Analytics channel.
         * 
         * @return builder
         * 
         */
        public Builder channelName(String channelName) {
            return channelName(Output.of(channelName));
        }

        /**
         * @param roleArn The ARN of the IAM role that grants access.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of the IAM role that grants access.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy