NetworkSimPolicyArgs

data class NetworkSimPolicyArgs(val defaultSliceId: Output<String>? = null, val location: Output<String>? = null, val mobileNetworkId: Output<String>? = null, val name: Output<String>? = null, val ratFrequencySelectionPriorityIndex: Output<Int>? = null, val registrationTimerInSeconds: Output<Int>? = null, val slices: Output<List<NetworkSimPolicySliceArgs>>? = null, val tags: Output<Map<String, String>>? = null, val userEquipmentAggregateMaximumBitRate: Output<NetworkSimPolicyUserEquipmentAggregateMaximumBitRateArgs>? = null) : ConvertibleToJava<NetworkSimPolicyArgs>

Manages a Mobile Network Sim Policy.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mobile.Network;
import com.pulumi.azure.mobile.NetworkArgs;
import com.pulumi.azure.mobile.NetworkDataNetwork;
import com.pulumi.azure.mobile.NetworkDataNetworkArgs;
import com.pulumi.azure.mobile.NetworkService;
import com.pulumi.azure.mobile.NetworkServiceArgs;
import com.pulumi.azure.mobile.inputs.NetworkServicePccRuleArgs;
import com.pulumi.azure.mobile.NetworkSlice;
import com.pulumi.azure.mobile.NetworkSliceArgs;
import com.pulumi.azure.mobile.inputs.NetworkSliceSingleNetworkSliceSelectionAssistanceInformationArgs;
import com.pulumi.azure.mobile.NetworkSimPolicy;
import com.pulumi.azure.mobile.NetworkSimPolicyArgs;
import com.pulumi.azure.mobile.inputs.NetworkSimPolicySliceArgs;
import com.pulumi.azure.mobile.inputs.NetworkSimPolicyUserEquipmentAggregateMaximumBitRateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.mobileCountryCode("001")
.mobileNetworkCode("01")
.build());
var exampleNetworkDataNetwork = new NetworkDataNetwork("exampleNetworkDataNetwork", NetworkDataNetworkArgs.builder()
.mobileNetworkId(exampleNetwork.id())
.location(exampleResourceGroup.location())
.build());
var exampleNetworkService = new NetworkService("exampleNetworkService", NetworkServiceArgs.builder()
.mobileNetworkId(exampleNetwork.id())
.location(exampleResourceGroup.location())
.servicePrecedence(0)
.pccRules(NetworkServicePccRuleArgs.builder()
.name("default-rule")
.precedence(1)
.trafficControlEnabled(true)
.serviceDataFlowTemplates(NetworkServicePccRuleServiceDataFlowTemplateArgs.builder()
.direction("Uplink")
.name("IP-to-server")
.ports()
.protocols("ip")
.remoteIpLists("10.3.4.0/24")
.build())
.build())
.build());
var exampleNetworkSlice = new NetworkSlice("exampleNetworkSlice", NetworkSliceArgs.builder()
.mobileNetworkId(exampleNetwork.id())
.location(exampleResourceGroup.location())
.singleNetworkSliceSelectionAssistanceInformation(NetworkSliceSingleNetworkSliceSelectionAssistanceInformationArgs.builder()
.sliceServiceType(1)
.build())
.build());
var exampleNetworkSimPolicy = new NetworkSimPolicy("exampleNetworkSimPolicy", NetworkSimPolicyArgs.builder()
.mobileNetworkId(exampleNetwork.id())
.location(exampleResourceGroup.location())
.registrationTimerInSeconds(3240)
.defaultSliceId(exampleNetworkSlice.id())
.slices(NetworkSimPolicySliceArgs.builder()
.defaultDataNetworkId(exampleNetworkDataNetwork.id())
.sliceId(exampleNetworkSlice.id())
.dataNetworks(NetworkSimPolicySliceDataNetworkArgs.builder()
.dataNetworkId(exampleNetworkDataNetwork.id())
.allocationAndRetentionPriorityLevel(9)
.defaultSessionType("IPv4")
.qosIndicator(9)
.preemptionCapability("NotPreempt")
.preemptionVulnerability("Preemptable")
.allowedServicesIds(exampleNetworkService.id())
.sessionAggregateMaximumBitRate(NetworkSimPolicySliceDataNetworkSessionAggregateMaximumBitRateArgs.builder()
.downlink("1 Gbps")
.uplink("500 Mbps")
.build())
.build())
.build())
.userEquipmentAggregateMaximumBitRate(NetworkSimPolicyUserEquipmentAggregateMaximumBitRateArgs.builder()
.downlink("1 Gbps")
.uplink("500 Mbps")
.build())
.tags(Map.of("key", "value"))
.build());
}
}

Import

Mobile Network Sim Policies can be imported using the resource id, e.g.

$ pulumi import azure:mobile/networkSimPolicy:NetworkSimPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/mobileNetworks/mobileNetwork1/simPolicies/simPolicy1

Constructors

Link copied to clipboard
fun NetworkSimPolicyArgs(defaultSliceId: Output<String>? = null, location: Output<String>? = null, mobileNetworkId: Output<String>? = null, name: Output<String>? = null, ratFrequencySelectionPriorityIndex: Output<Int>? = null, registrationTimerInSeconds: Output<Int>? = null, slices: Output<List<NetworkSimPolicySliceArgs>>? = null, tags: Output<Map<String, String>>? = null, userEquipmentAggregateMaximumBitRate: Output<NetworkSimPolicyUserEquipmentAggregateMaximumBitRateArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): NetworkSimPolicyArgs

Properties

Link copied to clipboard
val defaultSliceId: Output<String>? = null

The ID of default slice to use if the UE does not explicitly specify it. This slice must exist in the slice block.

Link copied to clipboard
val location: Output<String>? = null

Specifies the Azure Region where the Mobile Network Sim Policy should exist. Changing this forces a new Mobile Network Sim Policies to be created.

Link copied to clipboard
val mobileNetworkId: Output<String>? = null

The ID of the Mobile Network which the Sim Policy belongs to. Changing this forces a new Mobile Network Sim Policies to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Mobile Network Sim Policies. Changing this forces a new Mobile Network Sim Policies to be created.

Link copied to clipboard

RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413.

Link copied to clipboard
val registrationTimerInSeconds: Output<Int>? = null

Interval for the user equipment periodic registration update procedure. Defaults to 3240.

Link copied to clipboard
val slices: Output<List<NetworkSimPolicySliceArgs>>? = null

An array of slice block as defined below. The allowed slices and the settings to use for them. The list must not contain duplicate items and must contain at least one item.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Mobile Network Sim Policies.

Link copied to clipboard

A user_equipment_aggregate_maximum_bit_rate block as defined below.