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

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

    public static final TopicRuleErrorActionFirehoseArgs Empty = new TopicRuleErrorActionFirehoseArgs();

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

    /**
     * The delivery stream name.
     * 
     */
    @Import(name="deliveryStreamName", required=true)
    private Output deliveryStreamName;

    /**
     * @return The delivery stream name.
     * 
     */
    public Output deliveryStreamName() {
        return this.deliveryStreamName;
    }

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

    /**
     * @return The IAM role ARN that grants access to the Amazon Kinesis Firehose stream.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
     * 
     */
    @Import(name="separator")
    private @Nullable Output separator;

    /**
     * @return A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
     * 
     */
    public Optional> separator() {
        return Optional.ofNullable(this.separator);
    }

    private TopicRuleErrorActionFirehoseArgs() {}

    private TopicRuleErrorActionFirehoseArgs(TopicRuleErrorActionFirehoseArgs $) {
        this.batchMode = $.batchMode;
        this.deliveryStreamName = $.deliveryStreamName;
        this.roleArn = $.roleArn;
        this.separator = $.separator;
    }

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

    public static final class Builder {
        private TopicRuleErrorActionFirehoseArgs $;

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

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

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

        /**
         * @param deliveryStreamName The delivery stream name.
         * 
         * @return builder
         * 
         */
        public Builder deliveryStreamName(Output deliveryStreamName) {
            $.deliveryStreamName = deliveryStreamName;
            return this;
        }

        /**
         * @param deliveryStreamName The delivery stream name.
         * 
         * @return builder
         * 
         */
        public Builder deliveryStreamName(String deliveryStreamName) {
            return deliveryStreamName(Output.of(deliveryStreamName));
        }

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

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

        /**
         * @param separator A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
         * 
         * @return builder
         * 
         */
        public Builder separator(@Nullable Output separator) {
            $.separator = separator;
            return this;
        }

        /**
         * @param separator A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
         * 
         * @return builder
         * 
         */
        public Builder separator(String separator) {
            return separator(Output.of(separator));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy