SkusNestedResourceTypeFirst

class SkusNestedResourceTypeFirst : KotlinCustomResource

API Version: 2020-11-20.

Example Usage

Skus_CreateOrUpdateNestedResourceTypeFirst

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var skusNestedResourceTypeFirst = new AzureNative.ProviderHub.SkusNestedResourceTypeFirst("skusNestedResourceTypeFirst", new()
{
NestedResourceTypeFirst = "nestedResourceTypeFirst",
Properties = new AzureNative.ProviderHub.Inputs.SkuResourcePropertiesArgs
{
SkuSettings = new[]
{
new AzureNative.ProviderHub.Inputs.SkuSettingArgs
{
Kind = "Standard",
Name = "freeSku",
Tier = "Tier1",
},
new AzureNative.ProviderHub.Inputs.SkuSettingArgs
{
Costs = new[]
{
new AzureNative.ProviderHub.Inputs.SkuCostArgs
{
MeterId = "xxx",
},
},
Kind = "Premium",
Name = "premiumSku",
Tier = "Tier2",
},
},
},
ProviderNamespace = "Microsoft.Contoso",
ResourceType = "testResourceType",
Sku = "testSku",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.providerhub.SkusNestedResourceTypeFirst;
import com.pulumi.azurenative.providerhub.SkusNestedResourceTypeFirstArgs;
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 skusNestedResourceTypeFirst = new SkusNestedResourceTypeFirst("skusNestedResourceTypeFirst", SkusNestedResourceTypeFirstArgs.builder()
.nestedResourceTypeFirst("nestedResourceTypeFirst")
.properties(Map.of("skuSettings",
Map.ofEntries(
Map.entry("kind", "Standard"),
Map.entry("name", "freeSku"),
Map.entry("tier", "Tier1")
),
Map.ofEntries(
Map.entry("costs", Map.of("meterId", "xxx")),
Map.entry("kind", "Premium"),
Map.entry("name", "premiumSku"),
Map.entry("tier", "Tier2")
)))
.providerNamespace("Microsoft.Contoso")
.resourceType("testResourceType")
.sku("testSku")
.build());
}
}

Import

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

$ pulumi import azure-native:providerhub:SkusNestedResourceTypeFirst Microsoft.Contoso/ /subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>