Skip to content

azurermMobileNetworkDataNetwork

Manages a Mobile Network Data Network.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "East Us",
    name: "example-resources",
  }
);
const azurermMobileNetworkExample = new azurerm.mobileNetwork.MobileNetwork(
  this,
  "example_1",
  {
    location: azurermResourceGroupExample.location,
    mobile_country_code: "001",
    mobile_network_code: "01",
    name: "example-mn",
    resource_group_name: azurermResourceGroupExample.name,
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMobileNetworkExample.overrideLogicalId("example");
const azurermMobileNetworkDataNetworkExample =
  new azurerm.mobileNetworkDataNetwork.MobileNetworkDataNetwork(
    this,
    "example_2",
    {
      description: "example description",
      location: azurermResourceGroupExample.location,
      mobile_network_id: azurermMobileNetworkExample.id,
      name: "example-mndn",
      tags: {
        key: "value",
      },
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMobileNetworkDataNetworkExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) Specifies the name which should be used for this Mobile Network Data Network. Changing this forces a new Mobile Network Data Network to be created.

  • mobileNetworkId - (Required) Specifies the ID of the Mobile Network. Changing this forces a new Mobile Network Data Network to be created.

  • location - (Required) Specifies the Azure Region where the Mobile Network Data Network should exist. Changing this forces a new Mobile Network Data Network to be created.

  • description - (Optional) A description of this Mobile Network Data Network.

  • tags - (Optional) A mapping of tags which should be assigned to the Mobile Network Data Network.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Mobile Network Data Network.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 180 minutes) Used when creating the Mobile Network Data Network.
  • read - (Defaults to 5 minutes) Used when retrieving the Mobile Network Data Network.
  • update - (Defaults to 180 minutes) Used when updating the Mobile Network Data Network.
  • delete - (Defaults to 180 minutes) Used when deleting the Mobile Network Data Network.

Import

Mobile Network Data Network can be imported using the resourceId, e.g.

terraform import azurerm_mobile_network_data_network.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/mobileNetworks/mobileNetwork1/dataNetworks/dataNetwork1