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

com.pulumi.aws.ec2.inputs.InternetGatewayState 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.ec2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InternetGatewayState Empty = new InternetGatewayState();

    /**
     * The ARN of the Internet Gateway.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The ARN of the Internet Gateway.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The ID of the AWS account that owns the internet gateway.
     * 
     */
    @Import(name="ownerId")
    private @Nullable Output ownerId;

    /**
     * @return The ID of the AWS account that owns the internet gateway.
     * 
     */
    public Optional> ownerId() {
        return Optional.ofNullable(this.ownerId);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     * > **Note:** It's recommended to denote that the AWS Instance or Elastic IP depends on the Internet Gateway. For example:
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.ec2.InternetGateway;
     * import com.pulumi.aws.ec2.InternetGatewayArgs;
     * import com.pulumi.aws.ec2.Instance;
     * import com.pulumi.aws.ec2.InstanceArgs;
     * import com.pulumi.resources.CustomResourceOptions;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         var gw = new InternetGateway("gw", InternetGatewayArgs.builder()
     *             .vpcId(main.id())
     *             .build());
     * 
     *         var foo = new Instance("foo", InstanceArgs.Empty, CustomResourceOptions.builder()
     *             .dependsOn(gw)
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ @Import(name="tags") private @Nullable Output> tags; /** * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * * > **Note:** It's recommended to denote that the AWS Instance or Elastic IP depends on the Internet Gateway. For example: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.ec2.InternetGateway;
     * import com.pulumi.aws.ec2.InternetGatewayArgs;
     * import com.pulumi.aws.ec2.Instance;
     * import com.pulumi.aws.ec2.InstanceArgs;
     * import com.pulumi.resources.CustomResourceOptions;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         var gw = new InternetGateway("gw", InternetGatewayArgs.builder()
     *             .vpcId(main.id())
     *             .build());
     * 
     *         var foo = new Instance("foo", InstanceArgs.Empty, CustomResourceOptions.builder()
     *             .dependsOn(gw)
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public Optional>> tags() { return Optional.ofNullable(this.tags); } /** * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * * @deprecated * Please use `tags` instead. * */ @Deprecated /* Please use `tags` instead. */ @Import(name="tagsAll") private @Nullable Output> tagsAll; /** * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * * @deprecated * Please use `tags` instead. * */ @Deprecated /* Please use `tags` instead. */ public Optional>> tagsAll() { return Optional.ofNullable(this.tagsAll); } /** * The VPC ID to create in. See the aws.ec2.InternetGatewayAttachment resource for an alternate way to attach an Internet Gateway to a VPC. * */ @Import(name="vpcId") private @Nullable Output vpcId; /** * @return The VPC ID to create in. See the aws.ec2.InternetGatewayAttachment resource for an alternate way to attach an Internet Gateway to a VPC. * */ public Optional> vpcId() { return Optional.ofNullable(this.vpcId); } private InternetGatewayState() {} private InternetGatewayState(InternetGatewayState $) { this.arn = $.arn; this.ownerId = $.ownerId; this.tags = $.tags; this.tagsAll = $.tagsAll; this.vpcId = $.vpcId; } public static Builder builder() { return new Builder(); } public static Builder builder(InternetGatewayState defaults) { return new Builder(defaults); } public static final class Builder { private InternetGatewayState $; public Builder() { $ = new InternetGatewayState(); } public Builder(InternetGatewayState defaults) { $ = new InternetGatewayState(Objects.requireNonNull(defaults)); } /** * @param arn The ARN of the Internet Gateway. * * @return builder * */ public Builder arn(@Nullable Output arn) { $.arn = arn; return this; } /** * @param arn The ARN of the Internet Gateway. * * @return builder * */ public Builder arn(String arn) { return arn(Output.of(arn)); } /** * @param ownerId The ID of the AWS account that owns the internet gateway. * * @return builder * */ public Builder ownerId(@Nullable Output ownerId) { $.ownerId = ownerId; return this; } /** * @param ownerId The ID of the AWS account that owns the internet gateway. * * @return builder * */ public Builder ownerId(String ownerId) { return ownerId(Output.of(ownerId)); } /** * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * * > **Note:** It's recommended to denote that the AWS Instance or Elastic IP depends on the Internet Gateway. For example: * * <!--Start PulumiCodeChooser --> *
         * {@code
         * package generated_program;
         * 
         * import com.pulumi.Context;
         * import com.pulumi.Pulumi;
         * import com.pulumi.core.Output;
         * import com.pulumi.aws.ec2.InternetGateway;
         * import com.pulumi.aws.ec2.InternetGatewayArgs;
         * import com.pulumi.aws.ec2.Instance;
         * import com.pulumi.aws.ec2.InstanceArgs;
         * import com.pulumi.resources.CustomResourceOptions;
         * import java.util.List;
         * import java.util.ArrayList;
         * import java.util.Map;
         * import java.io.File;
         * import java.nio.file.Files;
         * import java.nio.file.Paths;
         * 
         * public class App {
         *     public static void main(String[] args) {
         *         Pulumi.run(App::stack);
         *     }
         * 
         *     public static void stack(Context ctx) {
         *         var gw = new InternetGateway("gw", InternetGatewayArgs.builder()
         *             .vpcId(main.id())
         *             .build());
         * 
         *         var foo = new Instance("foo", InstanceArgs.Empty, CustomResourceOptions.builder()
         *             .dependsOn(gw)
         *             .build());
         * 
         *     }
         * }
         * }
         * 
* <!--End PulumiCodeChooser --> * * @return builder * */ public Builder tags(@Nullable Output> tags) { $.tags = tags; return this; } /** * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * * > **Note:** It's recommended to denote that the AWS Instance or Elastic IP depends on the Internet Gateway. For example: * * <!--Start PulumiCodeChooser --> *
         * {@code
         * package generated_program;
         * 
         * import com.pulumi.Context;
         * import com.pulumi.Pulumi;
         * import com.pulumi.core.Output;
         * import com.pulumi.aws.ec2.InternetGateway;
         * import com.pulumi.aws.ec2.InternetGatewayArgs;
         * import com.pulumi.aws.ec2.Instance;
         * import com.pulumi.aws.ec2.InstanceArgs;
         * import com.pulumi.resources.CustomResourceOptions;
         * import java.util.List;
         * import java.util.ArrayList;
         * import java.util.Map;
         * import java.io.File;
         * import java.nio.file.Files;
         * import java.nio.file.Paths;
         * 
         * public class App {
         *     public static void main(String[] args) {
         *         Pulumi.run(App::stack);
         *     }
         * 
         *     public static void stack(Context ctx) {
         *         var gw = new InternetGateway("gw", InternetGatewayArgs.builder()
         *             .vpcId(main.id())
         *             .build());
         * 
         *         var foo = new Instance("foo", InstanceArgs.Empty, CustomResourceOptions.builder()
         *             .dependsOn(gw)
         *             .build());
         * 
         *     }
         * }
         * }
         * 
* <!--End PulumiCodeChooser --> * * @return builder * */ public Builder tags(Map tags) { return tags(Output.of(tags)); } /** * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * * @return builder * * @deprecated * Please use `tags` instead. * */ @Deprecated /* Please use `tags` instead. */ public Builder tagsAll(@Nullable Output> tagsAll) { $.tagsAll = tagsAll; return this; } /** * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * * @return builder * * @deprecated * Please use `tags` instead. * */ @Deprecated /* Please use `tags` instead. */ public Builder tagsAll(Map tagsAll) { return tagsAll(Output.of(tagsAll)); } /** * @param vpcId The VPC ID to create in. See the aws.ec2.InternetGatewayAttachment resource for an alternate way to attach an Internet Gateway to a VPC. * * @return builder * */ public Builder vpcId(@Nullable Output vpcId) { $.vpcId = vpcId; return this; } /** * @param vpcId The VPC ID to create in. See the aws.ec2.InternetGatewayAttachment resource for an alternate way to attach an Internet Gateway to a VPC. * * @return builder * */ public Builder vpcId(String vpcId) { return vpcId(Output.of(vpcId)); } public InternetGatewayState build() { return $; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy