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

com.pulumi.aws.iot.inputs.TopicRuleKinesisArgs 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicRuleKinesisArgs Empty = new TopicRuleKinesisArgs();

    /**
     * The partition key.
     * 
     */
    @Import(name="partitionKey")
    private @Nullable Output partitionKey;

    /**
     * @return The partition key.
     * 
     */
    public Optional> partitionKey() {
        return Optional.ofNullable(this.partitionKey);
    }

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

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

    /**
     * The name of the Amazon Kinesis stream.
     * 
     */
    @Import(name="streamName", required=true)
    private Output streamName;

    /**
     * @return The name of the Amazon Kinesis stream.
     * 
     */
    public Output streamName() {
        return this.streamName;
    }

    private TopicRuleKinesisArgs() {}

    private TopicRuleKinesisArgs(TopicRuleKinesisArgs $) {
        this.partitionKey = $.partitionKey;
        this.roleArn = $.roleArn;
        this.streamName = $.streamName;
    }

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

    public static final class Builder {
        private TopicRuleKinesisArgs $;

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

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

        /**
         * @param partitionKey The partition key.
         * 
         * @return builder
         * 
         */
        public Builder partitionKey(@Nullable Output partitionKey) {
            $.partitionKey = partitionKey;
            return this;
        }

        /**
         * @param partitionKey The partition key.
         * 
         * @return builder
         * 
         */
        public Builder partitionKey(String partitionKey) {
            return partitionKey(Output.of(partitionKey));
        }

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

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

        /**
         * @param streamName The name of the Amazon Kinesis stream.
         * 
         * @return builder
         * 
         */
        public Builder streamName(Output streamName) {
            $.streamName = streamName;
            return this;
        }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy