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

com.pulumi.azure.network.outputs.FirewallIpConfiguration Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FirewallIpConfiguration {
    /**
     * @return Specifies the name of the IP Configuration.
     * 
     */
    private String name;
    /**
     * @return The private IP address associated with the Firewall.
     * 
     */
    private @Nullable String privateIpAddress;
    /**
     * @return The ID of the Public IP Address associated with the firewall.
     * 
     * > **NOTE** A public ip address is required unless a `management_ip_configuration` block is specified.
     * 
     * > **NOTE** When multiple `ip_configuration` blocks with `public_ip_address_id` are configured, `pulumi up` will raise an error when one or some of these `ip_configuration` blocks are removed. because the `public_ip_address_id` is still used by the `firewall` resource until the `firewall` resource is updated. and the destruction of `azure.network.PublicIp` happens before the update of firewall by default. to destroy of `azure.network.PublicIp` will cause the error. The workaround is to set `create_before_destroy=true` to the `azure.network.PublicIp` resource `lifecycle` block. See more detail: destroying.md#create-before-destroy
     * 
     * > **NOTE** The Public IP must have a `Static` allocation and `Standard` SKU.
     * 
     */
    private @Nullable String publicIpAddressId;
    /**
     * @return Reference to the subnet associated with the IP Configuration. Changing this forces a new resource to be created.
     * 
     * > **NOTE** The Subnet used for the Firewall must have the name `AzureFirewallSubnet` and the subnet mask must be at least a `/26`.
     * 
     * > **NOTE** At least one and only one `ip_configuration` block may contain a `subnet_id`.
     * 
     */
    private @Nullable String subnetId;

    private FirewallIpConfiguration() {}
    /**
     * @return Specifies the name of the IP Configuration.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The private IP address associated with the Firewall.
     * 
     */
    public Optional privateIpAddress() {
        return Optional.ofNullable(this.privateIpAddress);
    }
    /**
     * @return The ID of the Public IP Address associated with the firewall.
     * 
     * > **NOTE** A public ip address is required unless a `management_ip_configuration` block is specified.
     * 
     * > **NOTE** When multiple `ip_configuration` blocks with `public_ip_address_id` are configured, `pulumi up` will raise an error when one or some of these `ip_configuration` blocks are removed. because the `public_ip_address_id` is still used by the `firewall` resource until the `firewall` resource is updated. and the destruction of `azure.network.PublicIp` happens before the update of firewall by default. to destroy of `azure.network.PublicIp` will cause the error. The workaround is to set `create_before_destroy=true` to the `azure.network.PublicIp` resource `lifecycle` block. See more detail: destroying.md#create-before-destroy
     * 
     * > **NOTE** The Public IP must have a `Static` allocation and `Standard` SKU.
     * 
     */
    public Optional publicIpAddressId() {
        return Optional.ofNullable(this.publicIpAddressId);
    }
    /**
     * @return Reference to the subnet associated with the IP Configuration. Changing this forces a new resource to be created.
     * 
     * > **NOTE** The Subnet used for the Firewall must have the name `AzureFirewallSubnet` and the subnet mask must be at least a `/26`.
     * 
     * > **NOTE** At least one and only one `ip_configuration` block may contain a `subnet_id`.
     * 
     */
    public Optional subnetId() {
        return Optional.ofNullable(this.subnetId);
    }

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

    public static Builder builder(FirewallIpConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private @Nullable String privateIpAddress;
        private @Nullable String publicIpAddressId;
        private @Nullable String subnetId;
        public Builder() {}
        public Builder(FirewallIpConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.privateIpAddress = defaults.privateIpAddress;
    	      this.publicIpAddressId = defaults.publicIpAddressId;
    	      this.subnetId = defaults.subnetId;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("FirewallIpConfiguration", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder privateIpAddress(@Nullable String privateIpAddress) {

            this.privateIpAddress = privateIpAddress;
            return this;
        }
        @CustomType.Setter
        public Builder publicIpAddressId(@Nullable String publicIpAddressId) {

            this.publicIpAddressId = publicIpAddressId;
            return this;
        }
        @CustomType.Setter
        public Builder subnetId(@Nullable String subnetId) {

            this.subnetId = subnetId;
            return this;
        }
        public FirewallIpConfiguration build() {
            final var _resultValue = new FirewallIpConfiguration();
            _resultValue.name = name;
            _resultValue.privateIpAddress = privateIpAddress;
            _resultValue.publicIpAddressId = publicIpAddressId;
            _resultValue.subnetId = subnetId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy