azurermMobileNetworkSlice
Manages a Mobile Network Slice.
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 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 azurermMobileNetworkSliceExample =
new azurerm.mobileNetworkSlice.MobileNetworkSlice(this, "example_2", {
description: "an example slice",
location: azurermResourceGroupExample.location,
mobile_network_id: "${azurerm_mobile_network.test.id}",
name: "example-mns",
single_network_slice_selection_assistance_information: [
{
slice_service_type: 1,
},
],
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.*/
azurermMobileNetworkSliceExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) Specifies the name which should be used for this Mobile Network Slice. Changing this forces a new Mobile Network Slice to be created. -
mobileNetworkId
- (Required) The ID of Mobile Network which the Mobile Network Slice belongs to. Changing this forces a new Mobile Network Slice to be created. -
location
- (Required) Specifies the Azure Region where the Mobile Network Slice should exist. Changing this forces a new Mobile Network Slice to be created. -
singleNetworkSliceSelectionAssistanceInformation
- (Required) AsingleNetworkSliceSelectionAssistanceInformation
block as defined below. Single-network slice selection assistance information (S-NSSAI). Unique at the scope of a mobile network. -
description
- (Optional) A description for this Mobile Network Slice. -
tags
- (Optional) A mapping of tags which should be assigned to the Mobile Network Slice.
A singleNetworkSliceSelectionAssistanceInformation
block supports the following:
-
sliceDifferentiator
- (Optional) Slice differentiator (SD). Must be a 6 digit hex string. -
sliceServiceType
- (Required) Slice/service type (SST). Must be between0
and255
.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Mobile Network Slice.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 180 minutes) Used when creating the Mobile Network Slice.read
- (Defaults to 5 minutes) Used when retrieving the Mobile Network Slice.update
- (Defaults to 180 minutes) Used when updating the Mobile Network Slice.delete
- (Defaults to 180 minutes) Used when deleting the Mobile Network Slice.
Import
Mobile Network Slice can be imported using the resourceId
, e.g.