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

com.pulumi.aws.iot.inputs.TopicRuleIotEventArgs 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 TopicRuleIotEventArgs extends com.pulumi.resources.ResourceArgs {

    public static final TopicRuleIotEventArgs Empty = new TopicRuleIotEventArgs();

    /**
     * The payload that contains a JSON array of records will be sent to IoT Events 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 Events via a batch call.
     * 
     */
    public Optional> batchMode() {
        return Optional.ofNullable(this.batchMode);
    }

    /**
     * The name of the AWS IoT Events input.
     * 
     */
    @Import(name="inputName", required=true)
    private Output inputName;

    /**
     * @return The name of the AWS IoT Events input.
     * 
     */
    public Output inputName() {
        return this.inputName;
    }

    /**
     * Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
     * 
     */
    @Import(name="messageId")
    private @Nullable Output messageId;

    /**
     * @return Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
     * 
     */
    public Optional> messageId() {
        return Optional.ofNullable(this.messageId);
    }

    /**
     * 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 TopicRuleIotEventArgs() {}

    private TopicRuleIotEventArgs(TopicRuleIotEventArgs $) {
        this.batchMode = $.batchMode;
        this.inputName = $.inputName;
        this.messageId = $.messageId;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private TopicRuleIotEventArgs $;

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

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

        /**
         * @param batchMode The payload that contains a JSON array of records will be sent to IoT Events 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 Events via a batch call.
         * 
         * @return builder
         * 
         */
        public Builder batchMode(Boolean batchMode) {
            return batchMode(Output.of(batchMode));
        }

        /**
         * @param inputName The name of the AWS IoT Events input.
         * 
         * @return builder
         * 
         */
        public Builder inputName(Output inputName) {
            $.inputName = inputName;
            return this;
        }

        /**
         * @param inputName The name of the AWS IoT Events input.
         * 
         * @return builder
         * 
         */
        public Builder inputName(String inputName) {
            return inputName(Output.of(inputName));
        }

        /**
         * @param messageId Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
         * 
         * @return builder
         * 
         */
        public Builder messageId(@Nullable Output messageId) {
            $.messageId = messageId;
            return this;
        }

        /**
         * @param messageId Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
         * 
         * @return builder
         * 
         */
        public Builder messageId(String messageId) {
            return messageId(Output.of(messageId));
        }

        /**
         * @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 TopicRuleIotEventArgs build() {
            if ($.inputName == null) {
                throw new MissingRequiredPropertyException("TopicRuleIotEventArgs", "inputName");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("TopicRuleIotEventArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy