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

com.pulumi.aws.ec2.inputs.DefaultNetworkAclState Maven / Gradle / Ivy

// *** 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.aws.ec2.inputs.DefaultNetworkAclEgressArgs;
import com.pulumi.aws.ec2.inputs.DefaultNetworkAclIngressArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DefaultNetworkAclState Empty = new DefaultNetworkAclState();

    /**
     * ARN of the Default Network ACL
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return ARN of the Default Network ACL
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Network ACL ID to manage. This attribute is exported from `aws.ec2.Vpc`, or manually found via the AWS Console.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="defaultNetworkAclId")
    private @Nullable Output defaultNetworkAclId;

    /**
     * @return Network ACL ID to manage. This attribute is exported from `aws.ec2.Vpc`, or manually found via the AWS Console.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> defaultNetworkAclId() {
        return Optional.ofNullable(this.defaultNetworkAclId);
    }

    /**
     * Configuration block for an egress rule. Detailed below.
     * 
     */
    @Import(name="egress")
    private @Nullable Output> egress;

    /**
     * @return Configuration block for an egress rule. Detailed below.
     * 
     */
    public Optional>> egress() {
        return Optional.ofNullable(this.egress);
    }

    /**
     * Configuration block for an ingress rule. Detailed below.
     * 
     */
    @Import(name="ingress")
    private @Nullable Output> ingress;

    /**
     * @return Configuration block for an ingress rule. Detailed below.
     * 
     */
    public Optional>> ingress() {
        return Optional.ofNullable(this.ingress);
    }

    /**
     * ID of the AWS account that owns the Default Network ACL
     * 
     */
    @Import(name="ownerId")
    private @Nullable Output ownerId;

    /**
     * @return ID of the AWS account that owns the Default Network ACL
     * 
     */
    public Optional> ownerId() {
        return Optional.ofNullable(this.ownerId);
    }

    /**
     * List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL
     * 
     */
    @Import(name="subnetIds")
    private @Nullable Output> subnetIds;

    /**
     * @return List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL
     * 
     */
    public Optional>> subnetIds() {
        return Optional.ofNullable(this.subnetIds);
    }

    /**
     * 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.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return 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.
     * 
     */
    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);
    }

    /**
     * ID of the associated VPC
     * 
     */
    @Import(name="vpcId")
    private @Nullable Output vpcId;

    /**
     * @return ID of the associated VPC
     * 
     */
    public Optional> vpcId() {
        return Optional.ofNullable(this.vpcId);
    }

    private DefaultNetworkAclState() {}

    private DefaultNetworkAclState(DefaultNetworkAclState $) {
        this.arn = $.arn;
        this.defaultNetworkAclId = $.defaultNetworkAclId;
        this.egress = $.egress;
        this.ingress = $.ingress;
        this.ownerId = $.ownerId;
        this.subnetIds = $.subnetIds;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private DefaultNetworkAclState $;

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

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

        /**
         * @param arn ARN of the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn ARN of the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param defaultNetworkAclId Network ACL ID to manage. This attribute is exported from `aws.ec2.Vpc`, or manually found via the AWS Console.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder defaultNetworkAclId(@Nullable Output defaultNetworkAclId) {
            $.defaultNetworkAclId = defaultNetworkAclId;
            return this;
        }

        /**
         * @param defaultNetworkAclId Network ACL ID to manage. This attribute is exported from `aws.ec2.Vpc`, or manually found via the AWS Console.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder defaultNetworkAclId(String defaultNetworkAclId) {
            return defaultNetworkAclId(Output.of(defaultNetworkAclId));
        }

        /**
         * @param egress Configuration block for an egress rule. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder egress(@Nullable Output> egress) {
            $.egress = egress;
            return this;
        }

        /**
         * @param egress Configuration block for an egress rule. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder egress(List egress) {
            return egress(Output.of(egress));
        }

        /**
         * @param egress Configuration block for an egress rule. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder egress(DefaultNetworkAclEgressArgs... egress) {
            return egress(List.of(egress));
        }

        /**
         * @param ingress Configuration block for an ingress rule. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder ingress(@Nullable Output> ingress) {
            $.ingress = ingress;
            return this;
        }

        /**
         * @param ingress Configuration block for an ingress rule. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder ingress(List ingress) {
            return ingress(Output.of(ingress));
        }

        /**
         * @param ingress Configuration block for an ingress rule. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder ingress(DefaultNetworkAclIngressArgs... ingress) {
            return ingress(List.of(ingress));
        }

        /**
         * @param ownerId ID of the AWS account that owns the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder ownerId(@Nullable Output ownerId) {
            $.ownerId = ownerId;
            return this;
        }

        /**
         * @param ownerId ID of the AWS account that owns the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder ownerId(String ownerId) {
            return ownerId(Output.of(ownerId));
        }

        /**
         * @param subnetIds List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(@Nullable Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        /**
         * @param tags 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.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags 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.
         * 
         * @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 ID of the associated VPC
         * 
         * @return builder
         * 
         */
        public Builder vpcId(@Nullable Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

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

        public DefaultNetworkAclState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy