1. Packages
  2. Packages
  3. Megaport Provider
  4. API Docs
  5. NatGateway
Viewing docs for megaport 1.9.0
published on Thursday, May 21, 2026 by megaport
Viewing docs for megaport 1.9.0
published on Thursday, May 21, 2026 by megaport

    Create NatGateway Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NatGateway(name: string, args: NatGatewayArgs, opts?: CustomResourceOptions);
    @overload
    def NatGateway(resource_name: str,
                   args: NatGatewayArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def NatGateway(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   contract_term_months: Optional[float] = None,
                   diversity_zone: Optional[str] = None,
                   location_id: Optional[float] = None,
                   product_name: Optional[str] = None,
                   session_count: Optional[float] = None,
                   speed: Optional[float] = None,
                   asn: Optional[float] = None,
                   auto_renew_term: Optional[bool] = None,
                   bgp_shutdown_default: Optional[bool] = None,
                   promo_code: Optional[str] = None,
                   resource_tags: Optional[Mapping[str, str]] = None)
    func NewNatGateway(ctx *Context, name string, args NatGatewayArgs, opts ...ResourceOption) (*NatGateway, error)
    public NatGateway(string name, NatGatewayArgs args, CustomResourceOptions? opts = null)
    public NatGateway(String name, NatGatewayArgs args)
    public NatGateway(String name, NatGatewayArgs args, CustomResourceOptions options)
    
    type: megaport:NatGateway
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "megaport_natgateway" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args NatGatewayArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NatGatewayArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NatGatewayArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NatGatewayArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NatGatewayArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var natGatewayResource = new Megaport.NatGateway("natGatewayResource", new()
    {
        ContractTermMonths = 0,
        DiversityZone = "string",
        LocationId = 0,
        ProductName = "string",
        SessionCount = 0,
        Speed = 0,
        Asn = 0,
        AutoRenewTerm = false,
        BgpShutdownDefault = false,
        PromoCode = "string",
        ResourceTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := megaport.NewNatGateway(ctx, "natGatewayResource", &megaport.NatGatewayArgs{
    	ContractTermMonths: pulumi.Float64(0),
    	DiversityZone:      pulumi.String("string"),
    	LocationId:         pulumi.Float64(0),
    	ProductName:        pulumi.String("string"),
    	SessionCount:       pulumi.Float64(0),
    	Speed:              pulumi.Float64(0),
    	Asn:                pulumi.Float64(0),
    	AutoRenewTerm:      pulumi.Bool(false),
    	BgpShutdownDefault: pulumi.Bool(false),
    	PromoCode:          pulumi.String("string"),
    	ResourceTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "megaport_natgateway" "natGatewayResource" {
      contract_term_months = 0
      diversity_zone       = "string"
      location_id          = 0
      product_name         = "string"
      session_count        = 0
      speed                = 0
      asn                  = 0
      auto_renew_term      = false
      bgp_shutdown_default = false
      promo_code           = "string"
      resource_tags = {
        "string" = "string"
      }
    }
    
    var natGatewayResource = new NatGateway("natGatewayResource", NatGatewayArgs.builder()
        .contractTermMonths(0.0)
        .diversityZone("string")
        .locationId(0.0)
        .productName("string")
        .sessionCount(0.0)
        .speed(0.0)
        .asn(0.0)
        .autoRenewTerm(false)
        .bgpShutdownDefault(false)
        .promoCode("string")
        .resourceTags(Map.of("string", "string"))
        .build());
    
    nat_gateway_resource = megaport.NatGateway("natGatewayResource",
        contract_term_months=float(0),
        diversity_zone="string",
        location_id=float(0),
        product_name="string",
        session_count=float(0),
        speed=float(0),
        asn=float(0),
        auto_renew_term=False,
        bgp_shutdown_default=False,
        promo_code="string",
        resource_tags={
            "string": "string",
        })
    
    const natGatewayResource = new megaport.NatGateway("natGatewayResource", {
        contractTermMonths: 0,
        diversityZone: "string",
        locationId: 0,
        productName: "string",
        sessionCount: 0,
        speed: 0,
        asn: 0,
        autoRenewTerm: false,
        bgpShutdownDefault: false,
        promoCode: "string",
        resourceTags: {
            string: "string",
        },
    });
    
    type: megaport:NatGateway
    properties:
        asn: 0
        autoRenewTerm: false
        bgpShutdownDefault: false
        contractTermMonths: 0
        diversityZone: string
        locationId: 0
        productName: string
        promoCode: string
        resourceTags:
            string: string
        sessionCount: 0
        speed: 0
    

    NatGateway Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NatGateway resource accepts the following input properties:

    ContractTermMonths double
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    DiversityZone string
    The diversity zone of the NAT Gateway.
    LocationId double
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    ProductName string
    The name of the NAT Gateway.
    SessionCount double
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    Speed double
    The speed of the NAT Gateway in Mbps.
    Asn double
    The Autonomous System Number (ASN) for the NAT Gateway.
    AutoRenewTerm bool
    Whether the NAT Gateway contract will auto-renew.
    BgpShutdownDefault bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    PromoCode string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    ResourceTags Dictionary<string, string>
    Resource tags for the NAT Gateway.
    ContractTermMonths float64
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    DiversityZone string
    The diversity zone of the NAT Gateway.
    LocationId float64
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    ProductName string
    The name of the NAT Gateway.
    SessionCount float64
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    Speed float64
    The speed of the NAT Gateway in Mbps.
    Asn float64
    The Autonomous System Number (ASN) for the NAT Gateway.
    AutoRenewTerm bool
    Whether the NAT Gateway contract will auto-renew.
    BgpShutdownDefault bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    PromoCode string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    ResourceTags map[string]string
    Resource tags for the NAT Gateway.
    contract_term_months number
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    diversity_zone string
    The diversity zone of the NAT Gateway.
    location_id number
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    product_name string
    The name of the NAT Gateway.
    session_count number
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed number
    The speed of the NAT Gateway in Mbps.
    asn number
    The Autonomous System Number (ASN) for the NAT Gateway.
    auto_renew_term bool
    Whether the NAT Gateway contract will auto-renew.
    bgp_shutdown_default bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    promo_code string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    resource_tags map(string)
    Resource tags for the NAT Gateway.
    contractTermMonths Double
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    diversityZone String
    The diversity zone of the NAT Gateway.
    locationId Double
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    productName String
    The name of the NAT Gateway.
    sessionCount Double
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed Double
    The speed of the NAT Gateway in Mbps.
    asn Double
    The Autonomous System Number (ASN) for the NAT Gateway.
    autoRenewTerm Boolean
    Whether the NAT Gateway contract will auto-renew.
    bgpShutdownDefault Boolean
    Whether BGP sessions are shut down by default on the NAT Gateway.
    promoCode String
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    resourceTags Map<String,String>
    Resource tags for the NAT Gateway.
    contractTermMonths number
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    diversityZone string
    The diversity zone of the NAT Gateway.
    locationId number
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    productName string
    The name of the NAT Gateway.
    sessionCount number
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed number
    The speed of the NAT Gateway in Mbps.
    asn number
    The Autonomous System Number (ASN) for the NAT Gateway.
    autoRenewTerm boolean
    Whether the NAT Gateway contract will auto-renew.
    bgpShutdownDefault boolean
    Whether BGP sessions are shut down by default on the NAT Gateway.
    promoCode string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    resourceTags {[key: string]: string}
    Resource tags for the NAT Gateway.
    contract_term_months float
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    diversity_zone str
    The diversity zone of the NAT Gateway.
    location_id float
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    product_name str
    The name of the NAT Gateway.
    session_count float
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed float
    The speed of the NAT Gateway in Mbps.
    asn float
    The Autonomous System Number (ASN) for the NAT Gateway.
    auto_renew_term bool
    Whether the NAT Gateway contract will auto-renew.
    bgp_shutdown_default bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    promo_code str
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    resource_tags Mapping[str, str]
    Resource tags for the NAT Gateway.
    contractTermMonths Number
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    diversityZone String
    The diversity zone of the NAT Gateway.
    locationId Number
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    productName String
    The name of the NAT Gateway.
    sessionCount Number
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed Number
    The speed of the NAT Gateway in Mbps.
    asn Number
    The Autonomous System Number (ASN) for the NAT Gateway.
    autoRenewTerm Boolean
    Whether the NAT Gateway contract will auto-renew.
    bgpShutdownDefault Boolean
    Whether BGP sessions are shut down by default on the NAT Gateway.
    promoCode String
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    resourceTags Map<String>
    Resource tags for the NAT Gateway.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NatGateway resource produces the following output properties:

    AdminLocked bool
    Whether the NAT Gateway is admin locked.
    ContractEndDate string
    The end date of the contract for the NAT Gateway.
    CreateDate string
    The date the NAT Gateway was created.
    CreatedBy string
    The user who created the NAT Gateway.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locked bool
    Whether the NAT Gateway is locked.
    ProductUid string
    The unique identifier of the NAT Gateway.
    ProvisioningStatus string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    ServiceLevelReference string
    A service level reference for the NAT Gateway.
    AdminLocked bool
    Whether the NAT Gateway is admin locked.
    ContractEndDate string
    The end date of the contract for the NAT Gateway.
    CreateDate string
    The date the NAT Gateway was created.
    CreatedBy string
    The user who created the NAT Gateway.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locked bool
    Whether the NAT Gateway is locked.
    ProductUid string
    The unique identifier of the NAT Gateway.
    ProvisioningStatus string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    ServiceLevelReference string
    A service level reference for the NAT Gateway.
    admin_locked bool
    Whether the NAT Gateway is admin locked.
    contract_end_date string
    The end date of the contract for the NAT Gateway.
    create_date string
    The date the NAT Gateway was created.
    created_by string
    The user who created the NAT Gateway.
    id string
    The provider-assigned unique ID for this managed resource.
    locked bool
    Whether the NAT Gateway is locked.
    product_uid string
    The unique identifier of the NAT Gateway.
    provisioning_status string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    service_level_reference string
    A service level reference for the NAT Gateway.
    adminLocked Boolean
    Whether the NAT Gateway is admin locked.
    contractEndDate String
    The end date of the contract for the NAT Gateway.
    createDate String
    The date the NAT Gateway was created.
    createdBy String
    The user who created the NAT Gateway.
    id String
    The provider-assigned unique ID for this managed resource.
    locked Boolean
    Whether the NAT Gateway is locked.
    productUid String
    The unique identifier of the NAT Gateway.
    provisioningStatus String
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    serviceLevelReference String
    A service level reference for the NAT Gateway.
    adminLocked boolean
    Whether the NAT Gateway is admin locked.
    contractEndDate string
    The end date of the contract for the NAT Gateway.
    createDate string
    The date the NAT Gateway was created.
    createdBy string
    The user who created the NAT Gateway.
    id string
    The provider-assigned unique ID for this managed resource.
    locked boolean
    Whether the NAT Gateway is locked.
    productUid string
    The unique identifier of the NAT Gateway.
    provisioningStatus string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    serviceLevelReference string
    A service level reference for the NAT Gateway.
    admin_locked bool
    Whether the NAT Gateway is admin locked.
    contract_end_date str
    The end date of the contract for the NAT Gateway.
    create_date str
    The date the NAT Gateway was created.
    created_by str
    The user who created the NAT Gateway.
    id str
    The provider-assigned unique ID for this managed resource.
    locked bool
    Whether the NAT Gateway is locked.
    product_uid str
    The unique identifier of the NAT Gateway.
    provisioning_status str
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    service_level_reference str
    A service level reference for the NAT Gateway.
    adminLocked Boolean
    Whether the NAT Gateway is admin locked.
    contractEndDate String
    The end date of the contract for the NAT Gateway.
    createDate String
    The date the NAT Gateway was created.
    createdBy String
    The user who created the NAT Gateway.
    id String
    The provider-assigned unique ID for this managed resource.
    locked Boolean
    Whether the NAT Gateway is locked.
    productUid String
    The unique identifier of the NAT Gateway.
    provisioningStatus String
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    serviceLevelReference String
    A service level reference for the NAT Gateway.

    Look up Existing NatGateway Resource

    Get an existing NatGateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NatGatewayState, opts?: CustomResourceOptions): NatGateway
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_locked: Optional[bool] = None,
            asn: Optional[float] = None,
            auto_renew_term: Optional[bool] = None,
            bgp_shutdown_default: Optional[bool] = None,
            contract_end_date: Optional[str] = None,
            contract_term_months: Optional[float] = None,
            create_date: Optional[str] = None,
            created_by: Optional[str] = None,
            diversity_zone: Optional[str] = None,
            location_id: Optional[float] = None,
            locked: Optional[bool] = None,
            product_name: Optional[str] = None,
            product_uid: Optional[str] = None,
            promo_code: Optional[str] = None,
            provisioning_status: Optional[str] = None,
            resource_tags: Optional[Mapping[str, str]] = None,
            service_level_reference: Optional[str] = None,
            session_count: Optional[float] = None,
            speed: Optional[float] = None) -> NatGateway
    func GetNatGateway(ctx *Context, name string, id IDInput, state *NatGatewayState, opts ...ResourceOption) (*NatGateway, error)
    public static NatGateway Get(string name, Input<string> id, NatGatewayState? state, CustomResourceOptions? opts = null)
    public static NatGateway get(String name, Output<String> id, NatGatewayState state, CustomResourceOptions options)
    resources:  _:    type: megaport:NatGateway    get:      id: ${id}
    import {
      to = megaport_natgateway.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminLocked bool
    Whether the NAT Gateway is admin locked.
    Asn double
    The Autonomous System Number (ASN) for the NAT Gateway.
    AutoRenewTerm bool
    Whether the NAT Gateway contract will auto-renew.
    BgpShutdownDefault bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    ContractEndDate string
    The end date of the contract for the NAT Gateway.
    ContractTermMonths double
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    CreateDate string
    The date the NAT Gateway was created.
    CreatedBy string
    The user who created the NAT Gateway.
    DiversityZone string
    The diversity zone of the NAT Gateway.
    LocationId double
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    Locked bool
    Whether the NAT Gateway is locked.
    ProductName string
    The name of the NAT Gateway.
    ProductUid string
    The unique identifier of the NAT Gateway.
    PromoCode string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    ProvisioningStatus string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    ResourceTags Dictionary<string, string>
    Resource tags for the NAT Gateway.
    ServiceLevelReference string
    A service level reference for the NAT Gateway.
    SessionCount double
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    Speed double
    The speed of the NAT Gateway in Mbps.
    AdminLocked bool
    Whether the NAT Gateway is admin locked.
    Asn float64
    The Autonomous System Number (ASN) for the NAT Gateway.
    AutoRenewTerm bool
    Whether the NAT Gateway contract will auto-renew.
    BgpShutdownDefault bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    ContractEndDate string
    The end date of the contract for the NAT Gateway.
    ContractTermMonths float64
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    CreateDate string
    The date the NAT Gateway was created.
    CreatedBy string
    The user who created the NAT Gateway.
    DiversityZone string
    The diversity zone of the NAT Gateway.
    LocationId float64
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    Locked bool
    Whether the NAT Gateway is locked.
    ProductName string
    The name of the NAT Gateway.
    ProductUid string
    The unique identifier of the NAT Gateway.
    PromoCode string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    ProvisioningStatus string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    ResourceTags map[string]string
    Resource tags for the NAT Gateway.
    ServiceLevelReference string
    A service level reference for the NAT Gateway.
    SessionCount float64
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    Speed float64
    The speed of the NAT Gateway in Mbps.
    admin_locked bool
    Whether the NAT Gateway is admin locked.
    asn number
    The Autonomous System Number (ASN) for the NAT Gateway.
    auto_renew_term bool
    Whether the NAT Gateway contract will auto-renew.
    bgp_shutdown_default bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    contract_end_date string
    The end date of the contract for the NAT Gateway.
    contract_term_months number
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    create_date string
    The date the NAT Gateway was created.
    created_by string
    The user who created the NAT Gateway.
    diversity_zone string
    The diversity zone of the NAT Gateway.
    location_id number
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    locked bool
    Whether the NAT Gateway is locked.
    product_name string
    The name of the NAT Gateway.
    product_uid string
    The unique identifier of the NAT Gateway.
    promo_code string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    provisioning_status string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    resource_tags map(string)
    Resource tags for the NAT Gateway.
    service_level_reference string
    A service level reference for the NAT Gateway.
    session_count number
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed number
    The speed of the NAT Gateway in Mbps.
    adminLocked Boolean
    Whether the NAT Gateway is admin locked.
    asn Double
    The Autonomous System Number (ASN) for the NAT Gateway.
    autoRenewTerm Boolean
    Whether the NAT Gateway contract will auto-renew.
    bgpShutdownDefault Boolean
    Whether BGP sessions are shut down by default on the NAT Gateway.
    contractEndDate String
    The end date of the contract for the NAT Gateway.
    contractTermMonths Double
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    createDate String
    The date the NAT Gateway was created.
    createdBy String
    The user who created the NAT Gateway.
    diversityZone String
    The diversity zone of the NAT Gateway.
    locationId Double
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    locked Boolean
    Whether the NAT Gateway is locked.
    productName String
    The name of the NAT Gateway.
    productUid String
    The unique identifier of the NAT Gateway.
    promoCode String
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    provisioningStatus String
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    resourceTags Map<String,String>
    Resource tags for the NAT Gateway.
    serviceLevelReference String
    A service level reference for the NAT Gateway.
    sessionCount Double
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed Double
    The speed of the NAT Gateway in Mbps.
    adminLocked boolean
    Whether the NAT Gateway is admin locked.
    asn number
    The Autonomous System Number (ASN) for the NAT Gateway.
    autoRenewTerm boolean
    Whether the NAT Gateway contract will auto-renew.
    bgpShutdownDefault boolean
    Whether BGP sessions are shut down by default on the NAT Gateway.
    contractEndDate string
    The end date of the contract for the NAT Gateway.
    contractTermMonths number
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    createDate string
    The date the NAT Gateway was created.
    createdBy string
    The user who created the NAT Gateway.
    diversityZone string
    The diversity zone of the NAT Gateway.
    locationId number
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    locked boolean
    Whether the NAT Gateway is locked.
    productName string
    The name of the NAT Gateway.
    productUid string
    The unique identifier of the NAT Gateway.
    promoCode string
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    provisioningStatus string
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    resourceTags {[key: string]: string}
    Resource tags for the NAT Gateway.
    serviceLevelReference string
    A service level reference for the NAT Gateway.
    sessionCount number
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed number
    The speed of the NAT Gateway in Mbps.
    admin_locked bool
    Whether the NAT Gateway is admin locked.
    asn float
    The Autonomous System Number (ASN) for the NAT Gateway.
    auto_renew_term bool
    Whether the NAT Gateway contract will auto-renew.
    bgp_shutdown_default bool
    Whether BGP sessions are shut down by default on the NAT Gateway.
    contract_end_date str
    The end date of the contract for the NAT Gateway.
    contract_term_months float
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    create_date str
    The date the NAT Gateway was created.
    created_by str
    The user who created the NAT Gateway.
    diversity_zone str
    The diversity zone of the NAT Gateway.
    location_id float
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    locked bool
    Whether the NAT Gateway is locked.
    product_name str
    The name of the NAT Gateway.
    product_uid str
    The unique identifier of the NAT Gateway.
    promo_code str
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    provisioning_status str
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    resource_tags Mapping[str, str]
    Resource tags for the NAT Gateway.
    service_level_reference str
    A service level reference for the NAT Gateway.
    session_count float
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed float
    The speed of the NAT Gateway in Mbps.
    adminLocked Boolean
    Whether the NAT Gateway is admin locked.
    asn Number
    The Autonomous System Number (ASN) for the NAT Gateway.
    autoRenewTerm Boolean
    Whether the NAT Gateway contract will auto-renew.
    bgpShutdownDefault Boolean
    Whether BGP sessions are shut down by default on the NAT Gateway.
    contractEndDate String
    The end date of the contract for the NAT Gateway.
    contractTermMonths Number
    The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
    createDate String
    The date the NAT Gateway was created.
    createdBy String
    The user who created the NAT Gateway.
    diversityZone String
    The diversity zone of the NAT Gateway.
    locationId Number
    The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
    locked Boolean
    Whether the NAT Gateway is locked.
    productName String
    The name of the NAT Gateway.
    productUid String
    The unique identifier of the NAT Gateway.
    promoCode String
    A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
    provisioningStatus String
    The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
    resourceTags Map<String>
    Resource tags for the NAT Gateway.
    serviceLevelReference String
    A service level reference for the NAT Gateway.
    sessionCount Number
    The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
    speed Number
    The speed of the NAT Gateway in Mbps.

    Package Details

    Repository
    megaport megaport/terraform-provider-megaport
    License
    Notes
    This Pulumi package is based on the megaport Terraform Provider.
    Viewing docs for megaport 1.9.0
    published on Thursday, May 21, 2026 by megaport

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial