Skip to main content
Providers

NatGateway

A resource of the Azure provider, version 0.3.0, in its Networking group. Import it with:

import NatGateway from "azure/networking"

Example

resource NatGateway example {
    name                 = "example-value"
    resourceGroup        = "example-value"
    location             = "example-value"
    idleTimeoutInMinutes = 4
    publicIpAddressIds   = "..."
    publicIpPrefixIds    = "..."
    skuName              = "Standard"
    tags                 = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
namestring—NoThe name of the NAT gateway
resourceGroupstring—NoThe Azure resource group name
locationstring—NoThe Azure region/location
idleTimeoutInMinutesnumber4NoThe idle timeout in minutes. Range: 4-120
publicIpAddressIdsany[]—NoList of public IP address resource IDs to associate
publicIpPrefixIdsany[]—NoList of public IP prefix resource IDs to associate
skuNamestring"Standard"NoThe SKU name Allowed: "Standard"
tagsobject—NoTags to apply to the NAT gateway

Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
idstringYesThe Azure resource ID of the NAT gateway
provisioningStatestringNoThe provisioning state of the NAT gateway
resourceGuidstringNoThe resource GUID of the NAT gateway
subnetIdsany[]NoList of subnet IDs using this NAT gateway

On this page