azurermMobileNetworkSimGroup
Manages a Mobile Network Sim Group.
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 dataAzurermKeyVaultKeyExample =
new azurerm.dataAzurermKeyVaultKey.DataAzurermKeyVaultKey(this, "example_1", {
key_vault_id: "${data.azurerm_key_vault.example.id}",
name: "some-key",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAzurermKeyVaultKeyExample.overrideLogicalId("example");
const dataAzurermUserAssignedIdentityExample =
new azurerm.dataAzurermUserAssignedIdentity.DataAzurermUserAssignedIdentity(
this,
"example_2",
{
name: "example-identity",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAzurermUserAssignedIdentityExample.overrideLogicalId("example");
const azurermMobileNetworkExample = new azurerm.mobileNetwork.MobileNetwork(
this,
"example_3",
{
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 azurermMobileNetworkSimGroupExample =
new azurerm.mobileNetworkSimGroup.MobileNetworkSimGroup(this, "example_4", {
encryption_key_url: dataAzurermKeyVaultKeyExample.id,
identity: [
{
identity_ids: [dataAzurermUserAssignedIdentityExample.id],
type: "SystemAssigned, UserAssigned",
},
],
location: azurermResourceGroupExample.location,
mobile_network_id: azurermMobileNetworkExample.id,
name: "example-mnsg",
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.*/
azurermMobileNetworkSimGroupExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) Specifies the name which should be used for this Mobile Network Sim Groups. Changing this forces a new Mobile Network Sim Group to be created. -
location
- (Required) Specifies the Azure Region where the Mobile Network Sim Groups should exist. Changing this forces a new Mobile Network Sim Group to be created. -
mobileNetworkId
- (Required) The ID of Mobile Network which the Mobile Network Sim Group belongs to. Changing this forces a new Mobile Network Slice to be created. -
encryptionKeyUrl
- (Optional) A key to encrypt the SIM data that belongs to this SIM group. -
identity
- (Optional) Anidentity
block as defined below.
-> NOTE: A userAssigned
identity must be specified when encryptionKeyUrl
is specified.
tags
- (Optional) A mapping of tags which should be assigned to the Mobile Network Sim Groups.
An identity
block supports the following:
-
type
- (Required) Specifies the type of Managed Service Identity. Possible value isuserAssigned
. -
identityIds
- (Optional) A list of IDs for User Assigned Managed Identity resources to be assigned.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Mobile Network Sim Groups.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 180 minutes) Used when creating the Mobile Network Sim Groups.read
- (Defaults to 5 minutes) Used when retrieving the Mobile Network Sim Groups.update
- (Defaults to 180 minutes) Used when updating the Mobile Network Sim Groups.delete
- (Defaults to 180 minutes) Used when deleting the Mobile Network Sim Groups.
Import
Mobile Network Sim Groups can be imported using the resourceId
, e.g.