ServiceArgs

data class ServiceArgs(val createdAt: Output<String>? = null, val createdBy: Output<String>? = null, val createdByType: Output<Either<String, CreatedByType>>? = null, val lastModifiedAt: Output<String>? = null, val lastModifiedBy: Output<String>? = null, val lastModifiedByType: Output<Either<String, CreatedByType>>? = null, val location: Output<String>? = null, val mobileNetworkName: Output<String>? = null, val pccRules: Output<List<PccRuleConfigurationArgs>>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val servicePrecedence: Output<Int>? = null, val serviceQosPolicy: Output<QosPolicyArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceArgs>

Service resource. API Version: 2022-04-01-preview.

Example Usage

Create service

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var service = new AzureNative.MobileNetwork.Service("service", new()
{
Location = "eastus",
MobileNetworkName = "testMobileNetwork",
PccRules = new[]
{
new AzureNative.MobileNetwork.Inputs.PccRuleConfigurationArgs
{
RuleName = "default-rule",
RulePrecedence = 255,
RuleQosPolicy = new AzureNative.MobileNetwork.Inputs.PccRuleQosPolicyArgs
{
AllocationAndRetentionPriorityLevel = 9,
FiveQi = 9,
MaximumBitRate = new AzureNative.MobileNetwork.Inputs.AmbrArgs
{
Downlink = "1 Gbps",
Uplink = "500 Mbps",
},
PreemptionCapability = "NotPreempt",
PreemptionVulnerability = "Preemptable",
},
ServiceDataFlowTemplates = new[]
{
new AzureNative.MobileNetwork.Inputs.ServiceDataFlowTemplateArgs
{
Direction = "Uplink",
Ports = new[] {},
Protocol = new[]
{
"ip",
},
RemoteIpList = new[]
{
"10.3.4.0/24",
},
TemplateName = "IP-to-server",
},
},
TrafficControl = "Enabled",
},
},
ResourceGroupName = "rg1",
ServiceName = "TestService",
ServicePrecedence = 255,
ServiceQosPolicy = new AzureNative.MobileNetwork.Inputs.QosPolicyArgs
{
AllocationAndRetentionPriorityLevel = 9,
FiveQi = 9,
MaximumBitRate = new AzureNative.MobileNetwork.Inputs.AmbrArgs
{
Downlink = "1 Gbps",
Uplink = "500 Mbps",
},
PreemptionCapability = "NotPreempt",
PreemptionVulnerability = "Preemptable",
},
});
});
package main
import (
mobilenetwork "github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobilenetwork.NewService(ctx, "service", &mobilenetwork.ServiceArgs{
Location: pulumi.String("eastus"),
MobileNetworkName: pulumi.String("testMobileNetwork"),
PccRules: []mobilenetwork.PccRuleConfigurationArgs{
{
RuleName: pulumi.String("default-rule"),
RulePrecedence: pulumi.Int(255),
RuleQosPolicy: {
AllocationAndRetentionPriorityLevel: pulumi.Int(9),
FiveQi: pulumi.Int(9),
MaximumBitRate: {
Downlink: pulumi.String("1 Gbps"),
Uplink: pulumi.String("500 Mbps"),
},
PreemptionCapability: pulumi.String("NotPreempt"),
PreemptionVulnerability: pulumi.String("Preemptable"),
},
ServiceDataFlowTemplates: mobilenetwork.ServiceDataFlowTemplateArray{
{
Direction: pulumi.String("Uplink"),
Ports: pulumi.StringArray{},
Protocol: pulumi.StringArray{
pulumi.String("ip"),
},
RemoteIpList: pulumi.StringArray{
pulumi.String("10.3.4.0/24"),
},
TemplateName: pulumi.String("IP-to-server"),
},
},
TrafficControl: pulumi.String("Enabled"),
},
},
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("TestService"),
ServicePrecedence: pulumi.Int(255),
ServiceQosPolicy: mobilenetwork.QosPolicyResponse{
AllocationAndRetentionPriorityLevel: pulumi.Int(9),
FiveQi: pulumi.Int(9),
MaximumBitRate: &mobilenetwork.AmbrArgs{
Downlink: pulumi.String("1 Gbps"),
Uplink: pulumi.String("500 Mbps"),
},
PreemptionCapability: pulumi.String("NotPreempt"),
PreemptionVulnerability: pulumi.String("Preemptable"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.mobilenetwork.Service;
import com.pulumi.azurenative.mobilenetwork.ServiceArgs;
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 service = new Service("service", ServiceArgs.builder()
.location("eastus")
.mobileNetworkName("testMobileNetwork")
.pccRules(Map.ofEntries(
Map.entry("ruleName", "default-rule"),
Map.entry("rulePrecedence", 255),
Map.entry("ruleQosPolicy", Map.ofEntries(
Map.entry("allocationAndRetentionPriorityLevel", 9),
Map.entry("fiveQi", 9),
Map.entry("maximumBitRate", Map.ofEntries(
Map.entry("downlink", "1 Gbps"),
Map.entry("uplink", "500 Mbps")
)),
Map.entry("preemptionCapability", "NotPreempt"),
Map.entry("preemptionVulnerability", "Preemptable")
)),
Map.entry("serviceDataFlowTemplates", Map.ofEntries(
Map.entry("direction", "Uplink"),
Map.entry("ports", ),
Map.entry("protocol", "ip"),
Map.entry("remoteIpList", "10.3.4.0/24"),
Map.entry("templateName", "IP-to-server")
)),
Map.entry("trafficControl", "Enabled")
))
.resourceGroupName("rg1")
.serviceName("TestService")
.servicePrecedence(255)
.serviceQosPolicy(Map.ofEntries(
Map.entry("allocationAndRetentionPriorityLevel", 9),
Map.entry("fiveQi", 9),
Map.entry("maximumBitRate", Map.ofEntries(
Map.entry("downlink", "1 Gbps"),
Map.entry("uplink", "500 Mbps")
)),
Map.entry("preemptionCapability", "NotPreempt"),
Map.entry("preemptionVulnerability", "Preemptable")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:mobilenetwork:Service testPolicy /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/TestService

Constructors

Link copied to clipboard
constructor(createdAt: Output<String>? = null, createdBy: Output<String>? = null, createdByType: Output<Either<String, CreatedByType>>? = null, lastModifiedAt: Output<String>? = null, lastModifiedBy: Output<String>? = null, lastModifiedByType: Output<Either<String, CreatedByType>>? = null, location: Output<String>? = null, mobileNetworkName: Output<String>? = null, pccRules: Output<List<PccRuleConfigurationArgs>>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, servicePrecedence: Output<Int>? = null, serviceQosPolicy: Output<QosPolicyArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The timestamp of resource creation (UTC).

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

The identity that created the resource.

Link copied to clipboard
val createdByType: Output<Either<String, CreatedByType>>? = null

The type of identity that created the resource.

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

The timestamp of resource last modification (UTC)

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

The identity that last modified the resource.

Link copied to clipboard
val lastModifiedByType: Output<Either<String, CreatedByType>>? = null

The type of identity that last modified the resource.

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

The geo-location where the resource lives

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

The name of the mobile network.

Link copied to clipboard
val pccRules: Output<List<PccRuleConfigurationArgs>>? = null

The set of data flow policy rules that make up this service.

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

The name of the resource group. The name is case insensitive.

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

The name of the service. You must not use any of the following reserved strings - default, requested or 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.

Link copied to clipboard
val serviceQosPolicy: Output<QosPolicyArgs>? = null

The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null then the UE's SIM policy will define the QoS settings.

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

Resource tags.

Functions

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