All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.mobile.kotlin.NetworkSim.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mobile.kotlin

import com.pulumi.azure.mobile.kotlin.outputs.NetworkSimStaticIpConfiguration
import com.pulumi.azure.mobile.kotlin.outputs.NetworkSimStaticIpConfiguration.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List

/**
 * Builder for [NetworkSim].
 */
@PulumiTagMarker
public class NetworkSimResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: NetworkSimArgs = NetworkSimArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend NetworkSimArgsBuilder.() -> Unit) {
        val builder = NetworkSimArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): NetworkSim {
        val builtJavaResource = com.pulumi.azure.mobile.NetworkSim(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return NetworkSim(builtJavaResource)
    }
}

/**
 * Manages a Mobile Network Sim.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleNetwork = new azure.mobile.Network("example", {
 *     name: "example-mn",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     mobileCountryCode: "001",
 *     mobileNetworkCode: "01",
 * });
 * const exampleNetworkSimGroup = new azure.mobile.NetworkSimGroup("example", {
 *     name: "example-mnsg",
 *     location: example.location,
 *     mobileNetworkId: exampleNetwork.id,
 * });
 * const exampleNetworkSlice = new azure.mobile.NetworkSlice("example", {
 *     name: "example-slice",
 *     mobileNetworkId: exampleNetwork.id,
 *     location: example.location,
 *     singleNetworkSliceSelectionAssistanceInformation: {
 *         sliceServiceType: 1,
 *     },
 * });
 * const exampleNetworkAttachedDataNetwork = new azure.mobile.NetworkAttachedDataNetwork("example", {
 *     mobileNetworkDataNetworkName: exampleAzurermMobileNetworkDataNetwork.name,
 *     mobileNetworkPacketCoreDataPlaneId: exampleAzurermMobileNetworkPacketCoreDataPlane.id,
 *     location: example.location,
 *     dnsAddresses: ["1.1.1.1"],
 *     userEquipmentAddressPoolPrefixes: ["2.4.0.0/24"],
 *     userEquipmentStaticAddressPoolPrefixes: ["2.4.1.0/24"],
 *     userPlaneAccessName: "test",
 *     userPlaneAccessIpv4Address: "10.204.141.4",
 *     userPlaneAccessIpv4Gateway: "10.204.141.1",
 *     userPlaneAccessIpv4Subnet: "10.204.141.0/24",
 * });
 * const exampleNetworkSim = new azure.mobile.NetworkSim("example", {
 *     name: "example-sim",
 *     mobileNetworkSimGroupId: exampleNetworkSimGroup.id,
 *     authenticationKey: "00000000000000000000000000000000",
 *     integratedCircuitCardIdentifier: "8900000000000000000",
 *     internationalMobileSubscriberIdentity: "000000000000000",
 *     operatorKeyCode: "00000000000000000000000000000000",
 *     staticIpConfigurations: [{
 *         attachedDataNetworkId: test.id,
 *         sliceId: testAzurermMobileNetworkSlice.id,
 *         staticIpv4Address: "2.4.0.1",
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_network = azure.mobile.Network("example",
 *     name="example-mn",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     mobile_country_code="001",
 *     mobile_network_code="01")
 * example_network_sim_group = azure.mobile.NetworkSimGroup("example",
 *     name="example-mnsg",
 *     location=example.location,
 *     mobile_network_id=example_network.id)
 * example_network_slice = azure.mobile.NetworkSlice("example",
 *     name="example-slice",
 *     mobile_network_id=example_network.id,
 *     location=example.location,
 *     single_network_slice_selection_assistance_information={
 *         "slice_service_type": 1,
 *     })
 * example_network_attached_data_network = azure.mobile.NetworkAttachedDataNetwork("example",
 *     mobile_network_data_network_name=example_azurerm_mobile_network_data_network["name"],
 *     mobile_network_packet_core_data_plane_id=example_azurerm_mobile_network_packet_core_data_plane["id"],
 *     location=example.location,
 *     dns_addresses=["1.1.1.1"],
 *     user_equipment_address_pool_prefixes=["2.4.0.0/24"],
 *     user_equipment_static_address_pool_prefixes=["2.4.1.0/24"],
 *     user_plane_access_name="test",
 *     user_plane_access_ipv4_address="10.204.141.4",
 *     user_plane_access_ipv4_gateway="10.204.141.1",
 *     user_plane_access_ipv4_subnet="10.204.141.0/24")
 * example_network_sim = azure.mobile.NetworkSim("example",
 *     name="example-sim",
 *     mobile_network_sim_group_id=example_network_sim_group.id,
 *     authentication_key="00000000000000000000000000000000",
 *     integrated_circuit_card_identifier="8900000000000000000",
 *     international_mobile_subscriber_identity="000000000000000",
 *     operator_key_code="00000000000000000000000000000000",
 *     static_ip_configurations=[{
 *         "attached_data_network_id": test["id"],
 *         "slice_id": test_azurerm_mobile_network_slice["id"],
 *         "static_ipv4_address": "2.4.0.1",
 *     }])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleNetwork = new Azure.Mobile.Network("example", new()
 *     {
 *         Name = "example-mn",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         MobileCountryCode = "001",
 *         MobileNetworkCode = "01",
 *     });
 *     var exampleNetworkSimGroup = new Azure.Mobile.NetworkSimGroup("example", new()
 *     {
 *         Name = "example-mnsg",
 *         Location = example.Location,
 *         MobileNetworkId = exampleNetwork.Id,
 *     });
 *     var exampleNetworkSlice = new Azure.Mobile.NetworkSlice("example", new()
 *     {
 *         Name = "example-slice",
 *         MobileNetworkId = exampleNetwork.Id,
 *         Location = example.Location,
 *         SingleNetworkSliceSelectionAssistanceInformation = new Azure.Mobile.Inputs.NetworkSliceSingleNetworkSliceSelectionAssistanceInformationArgs
 *         {
 *             SliceServiceType = 1,
 *         },
 *     });
 *     var exampleNetworkAttachedDataNetwork = new Azure.Mobile.NetworkAttachedDataNetwork("example", new()
 *     {
 *         MobileNetworkDataNetworkName = exampleAzurermMobileNetworkDataNetwork.Name,
 *         MobileNetworkPacketCoreDataPlaneId = exampleAzurermMobileNetworkPacketCoreDataPlane.Id,
 *         Location = example.Location,
 *         DnsAddresses = new[]
 *         {
 *             "1.1.1.1",
 *         },
 *         UserEquipmentAddressPoolPrefixes = new[]
 *         {
 *             "2.4.0.0/24",
 *         },
 *         UserEquipmentStaticAddressPoolPrefixes = new[]
 *         {
 *             "2.4.1.0/24",
 *         },
 *         UserPlaneAccessName = "test",
 *         UserPlaneAccessIpv4Address = "10.204.141.4",
 *         UserPlaneAccessIpv4Gateway = "10.204.141.1",
 *         UserPlaneAccessIpv4Subnet = "10.204.141.0/24",
 *     });
 *     var exampleNetworkSim = new Azure.Mobile.NetworkSim("example", new()
 *     {
 *         Name = "example-sim",
 *         MobileNetworkSimGroupId = exampleNetworkSimGroup.Id,
 *         AuthenticationKey = "00000000000000000000000000000000",
 *         IntegratedCircuitCardIdentifier = "8900000000000000000",
 *         InternationalMobileSubscriberIdentity = "000000000000000",
 *         OperatorKeyCode = "00000000000000000000000000000000",
 *         StaticIpConfigurations = new[]
 *         {
 *             new Azure.Mobile.Inputs.NetworkSimStaticIpConfigurationArgs
 *             {
 *                 AttachedDataNetworkId = test.Id,
 *                 SliceId = testAzurermMobileNetworkSlice.Id,
 *                 StaticIpv4Address = "2.4.0.1",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/mobile"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleNetwork, err := mobile.NewNetwork(ctx, "example", &mobile.NetworkArgs{
 * 			Name:              pulumi.String("example-mn"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			MobileCountryCode: pulumi.String("001"),
 * 			MobileNetworkCode: pulumi.String("01"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleNetworkSimGroup, err := mobile.NewNetworkSimGroup(ctx, "example", &mobile.NetworkSimGroupArgs{
 * 			Name:            pulumi.String("example-mnsg"),
 * 			Location:        example.Location,
 * 			MobileNetworkId: exampleNetwork.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = mobile.NewNetworkSlice(ctx, "example", &mobile.NetworkSliceArgs{
 * 			Name:            pulumi.String("example-slice"),
 * 			MobileNetworkId: exampleNetwork.ID(),
 * 			Location:        example.Location,
 * 			SingleNetworkSliceSelectionAssistanceInformation: &mobile.NetworkSliceSingleNetworkSliceSelectionAssistanceInformationArgs{
 * 				SliceServiceType: pulumi.Int(1),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = mobile.NewNetworkAttachedDataNetwork(ctx, "example", &mobile.NetworkAttachedDataNetworkArgs{
 * 			MobileNetworkDataNetworkName:       pulumi.Any(exampleAzurermMobileNetworkDataNetwork.Name),
 * 			MobileNetworkPacketCoreDataPlaneId: pulumi.Any(exampleAzurermMobileNetworkPacketCoreDataPlane.Id),
 * 			Location:                           example.Location,
 * 			DnsAddresses: pulumi.StringArray{
 * 				pulumi.String("1.1.1.1"),
 * 			},
 * 			UserEquipmentAddressPoolPrefixes: pulumi.StringArray{
 * 				pulumi.String("2.4.0.0/24"),
 * 			},
 * 			UserEquipmentStaticAddressPoolPrefixes: pulumi.StringArray{
 * 				pulumi.String("2.4.1.0/24"),
 * 			},
 * 			UserPlaneAccessName:        pulumi.String("test"),
 * 			UserPlaneAccessIpv4Address: pulumi.String("10.204.141.4"),
 * 			UserPlaneAccessIpv4Gateway: pulumi.String("10.204.141.1"),
 * 			UserPlaneAccessIpv4Subnet:  pulumi.String("10.204.141.0/24"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = mobile.NewNetworkSim(ctx, "example", &mobile.NetworkSimArgs{
 * 			Name:                                  pulumi.String("example-sim"),
 * 			MobileNetworkSimGroupId:               exampleNetworkSimGroup.ID(),
 * 			AuthenticationKey:                     pulumi.String("00000000000000000000000000000000"),
 * 			IntegratedCircuitCardIdentifier:       pulumi.String("8900000000000000000"),
 * 			InternationalMobileSubscriberIdentity: pulumi.String("000000000000000"),
 * 			OperatorKeyCode:                       pulumi.String("00000000000000000000000000000000"),
 * 			StaticIpConfigurations: mobile.NetworkSimStaticIpConfigurationArray{
 * 				&mobile.NetworkSimStaticIpConfigurationArgs{
 * 					AttachedDataNetworkId: pulumi.Any(test.Id),
 * 					SliceId:               pulumi.Any(testAzurermMobileNetworkSlice.Id),
 * 					StaticIpv4Address:     pulumi.String("2.4.0.1"),
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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.NetworkSimGroup;
 * import com.pulumi.azure.mobile.NetworkSimGroupArgs;
 * import com.pulumi.azure.mobile.NetworkSlice;
 * import com.pulumi.azure.mobile.NetworkSliceArgs;
 * import com.pulumi.azure.mobile.inputs.NetworkSliceSingleNetworkSliceSelectionAssistanceInformationArgs;
 * import com.pulumi.azure.mobile.NetworkAttachedDataNetwork;
 * import com.pulumi.azure.mobile.NetworkAttachedDataNetworkArgs;
 * import com.pulumi.azure.mobile.NetworkSim;
 * import com.pulumi.azure.mobile.NetworkSimArgs;
 * import com.pulumi.azure.mobile.inputs.NetworkSimStaticIpConfigurationArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
 *             .name("example-mn")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .mobileCountryCode("001")
 *             .mobileNetworkCode("01")
 *             .build());
 *         var exampleNetworkSimGroup = new NetworkSimGroup("exampleNetworkSimGroup", NetworkSimGroupArgs.builder()
 *             .name("example-mnsg")
 *             .location(example.location())
 *             .mobileNetworkId(exampleNetwork.id())
 *             .build());
 *         var exampleNetworkSlice = new NetworkSlice("exampleNetworkSlice", NetworkSliceArgs.builder()
 *             .name("example-slice")
 *             .mobileNetworkId(exampleNetwork.id())
 *             .location(example.location())
 *             .singleNetworkSliceSelectionAssistanceInformation(NetworkSliceSingleNetworkSliceSelectionAssistanceInformationArgs.builder()
 *                 .sliceServiceType(1)
 *                 .build())
 *             .build());
 *         var exampleNetworkAttachedDataNetwork = new NetworkAttachedDataNetwork("exampleNetworkAttachedDataNetwork", NetworkAttachedDataNetworkArgs.builder()
 *             .mobileNetworkDataNetworkName(exampleAzurermMobileNetworkDataNetwork.name())
 *             .mobileNetworkPacketCoreDataPlaneId(exampleAzurermMobileNetworkPacketCoreDataPlane.id())
 *             .location(example.location())
 *             .dnsAddresses("1.1.1.1")
 *             .userEquipmentAddressPoolPrefixes("2.4.0.0/24")
 *             .userEquipmentStaticAddressPoolPrefixes("2.4.1.0/24")
 *             .userPlaneAccessName("test")
 *             .userPlaneAccessIpv4Address("10.204.141.4")
 *             .userPlaneAccessIpv4Gateway("10.204.141.1")
 *             .userPlaneAccessIpv4Subnet("10.204.141.0/24")
 *             .build());
 *         var exampleNetworkSim = new NetworkSim("exampleNetworkSim", NetworkSimArgs.builder()
 *             .name("example-sim")
 *             .mobileNetworkSimGroupId(exampleNetworkSimGroup.id())
 *             .authenticationKey("00000000000000000000000000000000")
 *             .integratedCircuitCardIdentifier("8900000000000000000")
 *             .internationalMobileSubscriberIdentity("000000000000000")
 *             .operatorKeyCode("00000000000000000000000000000000")
 *             .staticIpConfigurations(NetworkSimStaticIpConfigurationArgs.builder()
 *                 .attachedDataNetworkId(test.id())
 *                 .sliceId(testAzurermMobileNetworkSlice.id())
 *                 .staticIpv4Address("2.4.0.1")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleNetwork:
 *     type: azure:mobile:Network
 *     name: example
 *     properties:
 *       name: example-mn
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       mobileCountryCode: '001'
 *       mobileNetworkCode: '01'
 *   exampleNetworkSimGroup:
 *     type: azure:mobile:NetworkSimGroup
 *     name: example
 *     properties:
 *       name: example-mnsg
 *       location: ${example.location}
 *       mobileNetworkId: ${exampleNetwork.id}
 *   exampleNetworkSlice:
 *     type: azure:mobile:NetworkSlice
 *     name: example
 *     properties:
 *       name: example-slice
 *       mobileNetworkId: ${exampleNetwork.id}
 *       location: ${example.location}
 *       singleNetworkSliceSelectionAssistanceInformation:
 *         sliceServiceType: 1
 *   exampleNetworkAttachedDataNetwork:
 *     type: azure:mobile:NetworkAttachedDataNetwork
 *     name: example
 *     properties:
 *       mobileNetworkDataNetworkName: ${exampleAzurermMobileNetworkDataNetwork.name}
 *       mobileNetworkPacketCoreDataPlaneId: ${exampleAzurermMobileNetworkPacketCoreDataPlane.id}
 *       location: ${example.location}
 *       dnsAddresses:
 *         - 1.1.1.1
 *       userEquipmentAddressPoolPrefixes:
 *         - 2.4.0.0/24
 *       userEquipmentStaticAddressPoolPrefixes:
 *         - 2.4.1.0/24
 *       userPlaneAccessName: test
 *       userPlaneAccessIpv4Address: 10.204.141.4
 *       userPlaneAccessIpv4Gateway: 10.204.141.1
 *       userPlaneAccessIpv4Subnet: 10.204.141.0/24
 *   exampleNetworkSim:
 *     type: azure:mobile:NetworkSim
 *     name: example
 *     properties:
 *       name: example-sim
 *       mobileNetworkSimGroupId: ${exampleNetworkSimGroup.id}
 *       authenticationKey: '00000000000000000000000000000000'
 *       integratedCircuitCardIdentifier: '8900000000000000000'
 *       internationalMobileSubscriberIdentity: '000000000000000'
 *       operatorKeyCode: '00000000000000000000000000000000'
 *       staticIpConfigurations:
 *         - attachedDataNetworkId: ${test.id}
 *           sliceId: ${testAzurermMobileNetworkSlice.id}
 *           staticIpv4Address: 2.4.0.1
 * ```
 * 
 * ## Import
 * Mobile Network Sim can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:mobile/networkSim:NetworkSim example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/simGroups/simGroup1/sims/sim1
 * ```
 */
public class NetworkSim internal constructor(
    override val javaResource: com.pulumi.azure.mobile.NetworkSim,
) : KotlinCustomResource(javaResource, NetworkSimMapper) {
    /**
     * The Ki value for the SIM.
     */
    public val authenticationKey: Output
        get() = javaResource.authenticationKey().applyValue({ args0 -> args0 })

    /**
     * An optional free-form text field that can be used to record the device type this SIM is associated with, for example `Video camera`. The Azure portal allows SIMs to be grouped and filtered based on this value.
     */
    public val deviceType: Output?
        get() = javaResource.deviceType().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The integrated circuit card ID (ICCID) for the SIM. Changing this forces a new Mobile Network Sim to be created.
     */
    public val integratedCircuitCardIdentifier: Output
        get() = javaResource.integratedCircuitCardIdentifier().applyValue({ args0 -> args0 })

    /**
     * The international mobile subscriber identity (IMSI) for the SIM. Changing this forces a new Mobile Network Sim to be created.
     */
    public val internationalMobileSubscriberIdentity: Output
        get() = javaResource.internationalMobileSubscriberIdentity().applyValue({ args0 -> args0 })

    /**
     * The ID of the Mobile Network which the Mobile Network Sim belongs to. Changing this forces a new Mobile Network Sim to be created.
     */
    public val mobileNetworkSimGroupId: Output
        get() = javaResource.mobileNetworkSimGroupId().applyValue({ args0 -> args0 })

    /**
     * The name which should be used for this Mobile Network Sim. Changing this forces a new Mobile Network Sim to be created.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * The Opc value for the SIM.
     */
    public val operatorKeyCode: Output
        get() = javaResource.operatorKeyCode().applyValue({ args0 -> args0 })

    /**
     * The ID of SIM policy used by this SIM.
     */
    public val simPolicyId: Output?
        get() = javaResource.simPolicyId().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The state of the SIM resource.
     */
    public val simState: Output
        get() = javaResource.simState().applyValue({ args0 -> args0 })

    /**
     * A `static_ip_configuration` block as defined below.
     */
    public val staticIpConfigurations: Output>?
        get() = javaResource.staticIpConfigurations().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
            }).orElse(null)
        })

    /**
     * The public key fingerprint of the SIM vendor who provided this SIM, if any.
     */
    public val vendorKeyFingerprint: Output
        get() = javaResource.vendorKeyFingerprint().applyValue({ args0 -> args0 })

    /**
     * The name of the SIM vendor who provided this SIM, if any.
     */
    public val vendorName: Output
        get() = javaResource.vendorName().applyValue({ args0 -> args0 })
}

public object NetworkSimMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.azure.mobile.NetworkSim::class == javaResource::class

    override fun map(javaResource: Resource): NetworkSim = NetworkSim(
        javaResource as
            com.pulumi.azure.mobile.NetworkSim,
    )
}

/**
 * @see [NetworkSim].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [NetworkSim].
 */
public suspend fun networkSim(name: String, block: suspend NetworkSimResourceBuilder.() -> Unit): NetworkSim {
    val builder = NetworkSimResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [NetworkSim].
 * @param name The _unique_ name of the resulting resource.
 */
public fun networkSim(name: String): NetworkSim {
    val builder = NetworkSimResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy