SimPolicyArgs

data class SimPolicyArgs(val createdAt: Output<String>? = null, val createdBy: Output<String>? = null, val createdByType: Output<Either<String, CreatedByType>>? = null, val defaultSlice: Output<SliceResourceIdArgs>? = 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 registrationTimer: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val rfspIndex: Output<Int>? = null, val simPolicyName: Output<String>? = null, val sliceConfigurations: Output<List<SliceConfigurationArgs>>? = null, val tags: Output<Map<String, String>>? = null, val ueAmbr: Output<AmbrArgs>? = null) : ConvertibleToJava<SimPolicyArgs>

SIM policy resource. API Version: 2022-04-01-preview.

Example Usage

Create SIM policy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var simPolicy = new AzureNative.MobileNetwork.SimPolicy("simPolicy", new()
{
DefaultSlice = new AzureNative.MobileNetwork.Inputs.SliceResourceIdArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice",
},
Location = "eastus",
MobileNetworkName = "testMobileNetwork",
RegistrationTimer = 3240,
ResourceGroupName = "rg1",
SimPolicyName = "testPolicy",
SliceConfigurations = new[]
{
new AzureNative.MobileNetwork.Inputs.SliceConfigurationArgs
{
DataNetworkConfigurations = new[]
{
new AzureNative.MobileNetwork.Inputs.DataNetworkConfigurationArgs
{
AdditionalAllowedSessionTypes = new[] {},
AllocationAndRetentionPriorityLevel = 9,
AllowedServices = new[]
{
new AzureNative.MobileNetwork.Inputs.ServiceResourceIdArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService",
},
},
DataNetwork = new AzureNative.MobileNetwork.Inputs.DataNetworkResourceIdArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork",
},
DefaultSessionType = "IPv4",
FiveQi = 9,
PreemptionCapability = "NotPreempt",
PreemptionVulnerability = "Preemptable",
SessionAmbr = new AzureNative.MobileNetwork.Inputs.AmbrArgs
{
Downlink = "1 Gbps",
Uplink = "500 Mbps",
},
},
},
DefaultDataNetwork = new AzureNative.MobileNetwork.Inputs.DataNetworkResourceIdArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork",
},
Slice = new AzureNative.MobileNetwork.Inputs.SliceResourceIdArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice",
},
},
},
UeAmbr = new AzureNative.MobileNetwork.Inputs.AmbrArgs
{
Downlink = "1 Gbps",
Uplink = "500 Mbps",
},
});
});
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.NewSimPolicy(ctx, "simPolicy", &mobilenetwork.SimPolicyArgs{
DefaultSlice: &mobilenetwork.SliceResourceIdArgs{
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice"),
},
Location: pulumi.String("eastus"),
MobileNetworkName: pulumi.String("testMobileNetwork"),
RegistrationTimer: pulumi.Int(3240),
ResourceGroupName: pulumi.String("rg1"),
SimPolicyName: pulumi.String("testPolicy"),
SliceConfigurations: []mobilenetwork.SliceConfigurationArgs{
{
DataNetworkConfigurations: mobilenetwork.DataNetworkConfigurationArray{
{
AdditionalAllowedSessionTypes: pulumi.StringArray{},
AllocationAndRetentionPriorityLevel: pulumi.Int(9),
AllowedServices: mobilenetwork.ServiceResourceIdArray{
{
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService"),
},
},
DataNetwork: {
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork"),
},
DefaultSessionType: pulumi.String("IPv4"),
FiveQi: pulumi.Int(9),
PreemptionCapability: pulumi.String("NotPreempt"),
PreemptionVulnerability: pulumi.String("Preemptable"),
SessionAmbr: {
Downlink: pulumi.String("1 Gbps"),
Uplink: pulumi.String("500 Mbps"),
},
},
},
DefaultDataNetwork: {
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork"),
},
Slice: {
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice"),
},
},
},
UeAmbr: &mobilenetwork.AmbrArgs{
Downlink: pulumi.String("1 Gbps"),
Uplink: pulumi.String("500 Mbps"),
},
})
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.SimPolicy;
import com.pulumi.azurenative.mobilenetwork.SimPolicyArgs;
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 simPolicy = new SimPolicy("simPolicy", SimPolicyArgs.builder()
.defaultSlice(Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice"))
.location("eastus")
.mobileNetworkName("testMobileNetwork")
.registrationTimer(3240)
.resourceGroupName("rg1")
.simPolicyName("testPolicy")
.sliceConfigurations(Map.ofEntries(
Map.entry("dataNetworkConfigurations", Map.ofEntries(
Map.entry("additionalAllowedSessionTypes", ),
Map.entry("allocationAndRetentionPriorityLevel", 9),
Map.entry("allowedServices", Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService")),
Map.entry("dataNetwork", Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork")),
Map.entry("defaultSessionType", "IPv4"),
Map.entry("fiveQi", 9),
Map.entry("preemptionCapability", "NotPreempt"),
Map.entry("preemptionVulnerability", "Preemptable"),
Map.entry("sessionAmbr", Map.ofEntries(
Map.entry("downlink", "1 Gbps"),
Map.entry("uplink", "500 Mbps")
))
)),
Map.entry("defaultDataNetwork", Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/dataNetworks/testdataNetwork")),
Map.entry("slice", Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice"))
))
.ueAmbr(Map.ofEntries(
Map.entry("downlink", "1 Gbps"),
Map.entry("uplink", "500 Mbps")
))
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
constructor(createdAt: Output<String>? = null, createdBy: Output<String>? = null, createdByType: Output<Either<String, CreatedByType>>? = null, defaultSlice: Output<SliceResourceIdArgs>? = null, lastModifiedAt: Output<String>? = null, lastModifiedBy: Output<String>? = null, lastModifiedByType: Output<Either<String, CreatedByType>>? = null, location: Output<String>? = null, mobileNetworkName: Output<String>? = null, registrationTimer: Output<Int>? = null, resourceGroupName: Output<String>? = null, rfspIndex: Output<Int>? = null, simPolicyName: Output<String>? = null, sliceConfigurations: Output<List<SliceConfigurationArgs>>? = null, tags: Output<Map<String, String>>? = null, ueAmbr: Output<AmbrArgs>? = 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 defaultSlice: Output<SliceResourceIdArgs>? = null

The default slice to use if the UE does not explicitly specify it. This slice must exist in the sliceConfigurations map.

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 registrationTimer: Output<Int>? = null

Interval for the UE periodic registration update procedure, in seconds.

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 rfspIndex: Output<Int>? = null

RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. This is an optional setting and by default is unspecified.

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

The name of the SIM policy.

Link copied to clipboard

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

Resource tags.

Link copied to clipboard
val ueAmbr: Output<AmbrArgs>? = null

Aggregate maximum bit rate across all non-GBR QoS flows of all PDU sessions of a given UE. See 3GPP TS23.501 section 5.7.2.6 for a full description of the UE-AMBR.

Functions

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