SliceArgs

data class SliceArgs(val description: Output<String>? = null, val location: Output<String>? = null, val mobileNetworkName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sliceName: Output<String>? = null, val snssai: Output<SnssaiArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SliceArgs>

Network slice resource. Must be created in the same location as its parent mobile network. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2023-06-01. Other available API versions: 2022-04-01-preview, 2022-11-01, 2023-06-01, 2023-09-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mobilenetwork [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create network slice

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var slice = new AzureNative.MobileNetwork.Slice("slice", new()
{
Description = "myFavouriteSlice",
Location = "eastus",
MobileNetworkName = "testMobileNetwork",
ResourceGroupName = "rg1",
SliceName = "testSlice",
Snssai = new AzureNative.MobileNetwork.Inputs.SnssaiArgs
{
Sd = "1abcde",
Sst = 1,
},
});
});
package main
import (
mobilenetwork "github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobilenetwork.NewSlice(ctx, "slice", &mobilenetwork.SliceArgs{
Description: pulumi.String("myFavouriteSlice"),
Location: pulumi.String("eastus"),
MobileNetworkName: pulumi.String("testMobileNetwork"),
ResourceGroupName: pulumi.String("rg1"),
SliceName: pulumi.String("testSlice"),
Snssai: &mobilenetwork.SnssaiArgs{
Sd: pulumi.String("1abcde"),
Sst: pulumi.Int(1),
},
})
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.Slice;
import com.pulumi.azurenative.mobilenetwork.SliceArgs;
import com.pulumi.azurenative.mobilenetwork.inputs.SnssaiArgs;
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 slice = new Slice("slice", SliceArgs.builder()
.description("myFavouriteSlice")
.location("eastus")
.mobileNetworkName("testMobileNetwork")
.resourceGroupName("rg1")
.sliceName("testSlice")
.snssai(SnssaiArgs.builder()
.sd("1abcde")
.sst(1)
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:mobilenetwork:Slice testSlice /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/slices/{sliceName}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, location: Output<String>? = null, mobileNetworkName: Output<String>? = null, resourceGroupName: Output<String>? = null, sliceName: Output<String>? = null, snssai: Output<SnssaiArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

An optional description for this network slice.

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 resourceGroupName: Output<String>? = null

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

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

The name of the network slice.

Link copied to clipboard
val snssai: Output<SnssaiArgs>? = null

Single-network slice selection assistance information (S-NSSAI). Unique at the scope of a mobile network.

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

Resource tags.

Functions

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