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

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

Go to download

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

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


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

    public static final TopicRuleDestinationVpcConfigurationArgs Empty = new TopicRuleDestinationVpcConfigurationArgs();

    /**
     * The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * The security groups of the VPC destination.
     * 
     */
    @Import(name="securityGroups")
    private @Nullable Output> securityGroups;

    /**
     * @return The security groups of the VPC destination.
     * 
     */
    public Optional>> securityGroups() {
        return Optional.ofNullable(this.securityGroups);
    }

    /**
     * The subnet IDs of the VPC destination.
     * 
     */
    @Import(name="subnetIds", required=true)
    private Output> subnetIds;

    /**
     * @return The subnet IDs of the VPC destination.
     * 
     */
    public Output> subnetIds() {
        return this.subnetIds;
    }

    /**
     * The ID of the VPC.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return The ID of the VPC.
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    private TopicRuleDestinationVpcConfigurationArgs() {}

    private TopicRuleDestinationVpcConfigurationArgs(TopicRuleDestinationVpcConfigurationArgs $) {
        this.roleArn = $.roleArn;
        this.securityGroups = $.securityGroups;
        this.subnetIds = $.subnetIds;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private TopicRuleDestinationVpcConfigurationArgs $;

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

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

        /**
         * @param roleArn The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param securityGroups The security groups of the VPC destination.
         * 
         * @return builder
         * 
         */
        public Builder securityGroups(@Nullable Output> securityGroups) {
            $.securityGroups = securityGroups;
            return this;
        }

        /**
         * @param securityGroups The security groups of the VPC destination.
         * 
         * @return builder
         * 
         */
        public Builder securityGroups(List securityGroups) {
            return securityGroups(Output.of(securityGroups));
        }

        /**
         * @param securityGroups The security groups of the VPC destination.
         * 
         * @return builder
         * 
         */
        public Builder securityGroups(String... securityGroups) {
            return securityGroups(List.of(securityGroups));
        }

        /**
         * @param subnetIds The subnet IDs of the VPC destination.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds The subnet IDs of the VPC destination.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds The subnet IDs of the VPC destination.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        /**
         * @param vpcId The ID of the VPC.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The ID of the VPC.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy