azurermMobileNetworkSite
Manages a Mobile Network Site.
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: "West Europe",
name: "example-resources",
}
);
const azurermDataboxEdgeDeviceExample =
new azurerm.databoxEdgeDevice.DataboxEdgeDevice(this, "example_1", {
location: azurermResourceGroupExample.location,
name: "example-device",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "EdgeP_Base-Standard",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermDataboxEdgeDeviceExample.overrideLogicalId("example");
const azurermMobileNetworkExample = new azurerm.mobileNetwork.MobileNetwork(
this,
"example_2",
{
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 azurermMobileNetworkSiteExample =
new azurerm.mobileNetworkSite.MobileNetworkSite(this, "example_3", {
location: azurermResourceGroupExample.location,
mobile_network_id: azurermMobileNetworkExample.id,
name: "example-mns",
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.*/
azurermMobileNetworkSiteExample.overrideLogicalId("example");
const azurermMobileNetworkPacketCoreControlPlaneExample =
new azurerm.mobileNetworkPacketCoreControlPlane.MobileNetworkPacketCoreControlPlane(
this,
"example_4",
{
location: azurermResourceGroupExample.location,
name: "example-mnpccp",
platform: [
{
edge_device_id: azurermDataboxEdgeDeviceExample.id,
type: "AKS-HCI",
},
],
resource_group_name: azurermResourceGroupExample.name,
site_ids: [azurermMobileNetworkSiteExample.id],
sku: "G0",
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.*/
azurermMobileNetworkPacketCoreControlPlaneExample.overrideLogicalId("example");
const azurermMobileNetworkPacketCoreDataPlaneExample =
new azurerm.mobileNetworkPacketCoreDataPlane.MobileNetworkPacketCoreDataPlane(
this,
"example_5",
{
location: azurermResourceGroupExample.location,
mobile_network_packet_core_control_plane_id:
azurermMobileNetworkPacketCoreControlPlaneExample.id,
name: "example-mnpcdp",
tags: {
key: "value",
},
user_plane_access_interface: [
{
ipv4_address: "192.168.1.199",
ipv4_gateway: "192.168.1.1",
ipv4_subnet: "192.168.1.0/25",
name: "default-interface",
},
],
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMobileNetworkPacketCoreDataPlaneExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Mobile Network Site. Changing this forces a new Mobile Network Site to be created. -
mobileNetworkId
- (Required) the ID of the Mobile Network which the Mobile Network Site belongs to. Changing this forces a new Mobile Network Site to be created. -
location
- (Required) The Azure Region where the Mobile Network Site should exist. Changing this forces a new Mobile Network Site to be created. -
tags
- (Optional) A mapping of tags which should be assigned to the Mobile Network Site.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Mobile Network Site. -
networkFunctionIds
- An array of Id of Network Functions deployed on the site.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 180 minutes) Used when creating the Mobile Network Site.read
- (Defaults to 5 minutes) Used when retrieving the Mobile Network Site.update
- (Defaults to 180 minutes) Used when updating the Mobile Network Site.delete
- (Defaults to 180 minutes) Used when deleting the Mobile Network Site.
Import
Mobile Network Site can be imported using the resourceId
, e.g.