Slice Args
data class SliceArgs(val createdAt: Output<String>? = null, val createdBy: Output<String>? = null, val createdByType: Output<Either<String, CreatedByType>>? = null, val description: Output<String>? = 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 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. API Version: 2022-04-01-preview.
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,
},
});
});
Content copied to clipboard
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.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
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("sd", "1abcde"),
Map.entry("sst", 1)
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:mobilenetwork:Slice testSlice /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(createdAt: Output<String>? = null, createdBy: Output<String>? = null, createdByType: Output<Either<String, CreatedByType>>? = null, description: Output<String>? = null, lastModifiedAt: Output<String>? = null, lastModifiedBy: Output<String>? = null, lastModifiedByType: Output<Either<String, CreatedByType>>? = 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
The type of identity that created the resource.
Link copied to clipboard
An optional description for this network slice.
Link copied to clipboard
The timestamp of resource last modification (UTC)
Link copied to clipboard
The identity that last modified the resource.
Link copied to clipboard
The type of identity that last modified the resource.
Link copied to clipboard
The name of the mobile network.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Single-network slice selection assistance information (S-NSSAI). Unique at the scope of a mobile network.