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

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

    public static final FirehoseDeliveryStreamOpensearchserverlessConfigurationVpcConfigArgs Empty = new FirehoseDeliveryStreamOpensearchserverlessConfigurationVpcConfigArgs();

    /**
     * The ARN of the IAM role to be assumed by Firehose for calling the Amazon EC2 configuration API and for creating network interfaces. Make sure role has necessary [IAM permissions](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-es-vpc)
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The ARN of the IAM role to be assumed by Firehose for calling the Amazon EC2 configuration API and for creating network interfaces. Make sure role has necessary [IAM permissions](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-es-vpc)
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * A list of security group IDs to associate with Kinesis Firehose.
     * 
     */
    @Import(name="securityGroupIds", required=true)
    private Output> securityGroupIds;

    /**
     * @return A list of security group IDs to associate with Kinesis Firehose.
     * 
     */
    public Output> securityGroupIds() {
        return this.securityGroupIds;
    }

    /**
     * A list of subnet IDs to associate with Kinesis Firehose.
     * 
     */
    @Import(name="subnetIds", required=true)
    private Output> subnetIds;

    /**
     * @return A list of subnet IDs to associate with Kinesis Firehose.
     * 
     */
    public Output> subnetIds() {
        return this.subnetIds;
    }

    @Import(name="vpcId")
    private @Nullable Output vpcId;

    public Optional> vpcId() {
        return Optional.ofNullable(this.vpcId);
    }

    private FirehoseDeliveryStreamOpensearchserverlessConfigurationVpcConfigArgs() {}

    private FirehoseDeliveryStreamOpensearchserverlessConfigurationVpcConfigArgs(FirehoseDeliveryStreamOpensearchserverlessConfigurationVpcConfigArgs $) {
        this.roleArn = $.roleArn;
        this.securityGroupIds = $.securityGroupIds;
        this.subnetIds = $.subnetIds;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private FirehoseDeliveryStreamOpensearchserverlessConfigurationVpcConfigArgs $;

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

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

        /**
         * @param roleArn The ARN of the IAM role to be assumed by Firehose for calling the Amazon EC2 configuration API and for creating network interfaces. Make sure role has necessary [IAM permissions](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-es-vpc)
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of the IAM role to be assumed by Firehose for calling the Amazon EC2 configuration API and for creating network interfaces. Make sure role has necessary [IAM permissions](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-es-vpc)
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param securityGroupIds A list of security group IDs to associate with Kinesis Firehose.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(Output> securityGroupIds) {
            $.securityGroupIds = securityGroupIds;
            return this;
        }

        /**
         * @param securityGroupIds A list of security group IDs to associate with Kinesis Firehose.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(List securityGroupIds) {
            return securityGroupIds(Output.of(securityGroupIds));
        }

        /**
         * @param securityGroupIds A list of security group IDs to associate with Kinesis Firehose.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(String... securityGroupIds) {
            return securityGroupIds(List.of(securityGroupIds));
        }

        /**
         * @param subnetIds A list of subnet IDs to associate with Kinesis Firehose.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds A list of subnet IDs to associate with Kinesis Firehose.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds A list of subnet IDs to associate with Kinesis Firehose.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        public Builder vpcId(@Nullable Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy