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

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

    public static final TopicRuleErrorActionDynamodbv2Args Empty = new TopicRuleErrorActionDynamodbv2Args();

    /**
     * Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
     * 
     */
    @Import(name="putItem")
    private @Nullable Output putItem;

    /**
     * @return Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
     * 
     */
    public Optional> putItem() {
        return Optional.ofNullable(this.putItem);
    }

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

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

    private TopicRuleErrorActionDynamodbv2Args() {}

    private TopicRuleErrorActionDynamodbv2Args(TopicRuleErrorActionDynamodbv2Args $) {
        this.putItem = $.putItem;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private TopicRuleErrorActionDynamodbv2Args $;

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

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

        /**
         * @param putItem Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
         * 
         * @return builder
         * 
         */
        public Builder putItem(@Nullable Output putItem) {
            $.putItem = putItem;
            return this;
        }

        /**
         * @param putItem Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
         * 
         * @return builder
         * 
         */
        public Builder putItem(TopicRuleErrorActionDynamodbv2PutItemArgs putItem) {
            return putItem(Output.of(putItem));
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy