import * as pulumi from "@pulumi/pulumi"; /** * Manages the association between a NAT Gateway and a Public IP. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const examplePublicIp = new azure.network.PublicIp("example", { * name: "example-PIP", * location: example.location, * resourceGroupName: example.name, * allocationMethod: "Static", * sku: "Standard", * }); * const exampleNatGateway = new azure.network.NatGateway("example", { * name: "example-NatGateway", * location: example.location, * resourceGroupName: example.name, * skuName: "Standard", * }); * const exampleNatGatewayPublicIpAssociation = new azure.network.NatGatewayPublicIpAssociation("example", { * natGatewayId: exampleNatGateway.id, * publicIpAddressId: examplePublicIp.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Associations between NAT Gateway and Public IP Addresses can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/natGatewayPublicIpAssociation:NatGatewayPublicIpAssociation example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/natGateways/gateway1|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/publicIPAddresses/myPublicIpAddress1" * ``` * * > **Note:** This is a provider-specific ID in the format `{natGatewayID}|{publicIPAddressID}` */ export declare class NatGatewayPublicIpAssociation extends pulumi.CustomResource { /** * Get an existing NatGatewayPublicIpAssociation resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NatGatewayPublicIpAssociationState, opts?: pulumi.CustomResourceOptions): NatGatewayPublicIpAssociation; /** * Returns true if the given object is an instance of NatGatewayPublicIpAssociation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NatGatewayPublicIpAssociation; /** * The ID of the NAT Gateway. Changing this forces a new resource to be created. */ readonly natGatewayId: pulumi.Output; /** * The ID of the Public IP which this NAT Gateway which should be connected to. Changing this forces a new resource to be created. * * > **Note:** When `natGatewayId` references a `StandardV2` NAT Gateway, `publicIpAddressId` must reference a `StandardV2` Public IP. Azure rejects `Standard` Public IPs with `StandardV2` NAT Gateways, and this incompatibility is not validated during pulumi preview phase. */ readonly publicIpAddressId: pulumi.Output; /** * Create a NatGatewayPublicIpAssociation resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NatGatewayPublicIpAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NatGatewayPublicIpAssociation resources. */ export interface NatGatewayPublicIpAssociationState { /** * The ID of the NAT Gateway. Changing this forces a new resource to be created. */ natGatewayId?: pulumi.Input; /** * The ID of the Public IP which this NAT Gateway which should be connected to. Changing this forces a new resource to be created. * * > **Note:** When `natGatewayId` references a `StandardV2` NAT Gateway, `publicIpAddressId` must reference a `StandardV2` Public IP. Azure rejects `Standard` Public IPs with `StandardV2` NAT Gateways, and this incompatibility is not validated during pulumi preview phase. */ publicIpAddressId?: pulumi.Input; } /** * The set of arguments for constructing a NatGatewayPublicIpAssociation resource. */ export interface NatGatewayPublicIpAssociationArgs { /** * The ID of the NAT Gateway. Changing this forces a new resource to be created. */ natGatewayId: pulumi.Input; /** * The ID of the Public IP which this NAT Gateway which should be connected to. Changing this forces a new resource to be created. * * > **Note:** When `natGatewayId` references a `StandardV2` NAT Gateway, `publicIpAddressId` must reference a `StandardV2` Public IP. Azure rejects `Standard` Public IPs with `StandardV2` NAT Gateways, and this incompatibility is not validated during pulumi preview phase. */ publicIpAddressId: pulumi.Input; }