NetworkServiceArgs

data class NetworkServiceArgs(val location: Output<String>? = null, val mobileNetworkId: Output<String>? = null, val name: Output<String>? = null, val pccRules: Output<List<NetworkServicePccRuleArgs>>? = null, val servicePrecedence: Output<Int>? = null, val serviceQosPolicy: Output<NetworkServiceServiceQosPolicyArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkServiceArgs>

Manages a Mobile Network Service.

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.NetworkService;
import com.pulumi.azure.mobile.NetworkServiceArgs;
import com.pulumi.azure.mobile.inputs.NetworkServicePccRuleArgs;
import com.pulumi.azure.mobile.inputs.NetworkServicePccRuleQosPolicyArgs;
import com.pulumi.azure.mobile.inputs.NetworkServicePccRuleQosPolicyGuaranteedBitRateArgs;
import com.pulumi.azure.mobile.inputs.NetworkServicePccRuleQosPolicyMaximumBitRateArgs;
import com.pulumi.azure.mobile.inputs.NetworkServiceServiceQosPolicyArgs;
import com.pulumi.azure.mobile.inputs.NetworkServiceServiceQosPolicyMaximumBitRateArgs;
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("east us")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.mobileCountryCode("001")
.mobileNetworkCode("01")
.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)
.qosPolicy(NetworkServicePccRuleQosPolicyArgs.builder()
.allocationAndRetentionPriorityLevel(9)
.qosIndicator(9)
.preemptionCapability("NotPreempt")
.preemptionVulnerability("Preemptable")
.guaranteedBitRate(NetworkServicePccRuleQosPolicyGuaranteedBitRateArgs.builder()
.downlink("100 Mbps")
.uplink("10 Mbps")
.build())
.maximumBitRate(NetworkServicePccRuleQosPolicyMaximumBitRateArgs.builder()
.downlink("1 Gbps")
.uplink("100 Mbps")
.build())
.build())
.serviceDataFlowTemplates(NetworkServicePccRuleServiceDataFlowTemplateArgs.builder()
.direction("Uplink")
.name("IP-to-server")
.ports()
.protocols("ip")
.remoteIpLists("10.3.4.0/24")
.build())
.build())
.serviceQosPolicy(NetworkServiceServiceQosPolicyArgs.builder()
.allocationAndRetentionPriorityLevel(9)
.qosIndicator(9)
.preemptionCapability("NotPreempt")
.preemptionVulnerability("Preemptable")
.maximumBitRate(NetworkServiceServiceQosPolicyMaximumBitRateArgs.builder()
.downlink("1 Gbps")
.uplink("100 Mbps")
.build())
.build())
.tags(Map.of("key", "value"))
.build());
}
}

Import

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

$ pulumi import azure:mobile/networkService:NetworkService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/mobileNetworks/mobileNetwork1/services/service1

Constructors

Link copied to clipboard
fun NetworkServiceArgs(location: Output<String>? = null, mobileNetworkId: Output<String>? = null, name: Output<String>? = null, pccRules: Output<List<NetworkServicePccRuleArgs>>? = null, servicePrecedence: Output<Int>? = null, serviceQosPolicy: Output<NetworkServiceServiceQosPolicyArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

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

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

Specifies the ID of the Mobile Network Service. Changing this forces a new Mobile Network Service to be created.

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

Specifies the name which should be used for this Mobile Network Service. Changing this forces a new Mobile Network Service to be created.

Link copied to clipboard

A pcc_rule block as defined below. The set of PCC Rules that make up this service.

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

A precedence value that is used to decide between services when identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique among all services configured in the mobile network. Must be between 0 and 255.

Link copied to clipboard

A service_qos_policy block as defined below. The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a pcc_rule. If this field is not specified then the sim_policy of User Equipment (UE) will define the QoS settings.

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

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