1. Packages
  2. Azure Native
  3. API Docs
  4. providerhub
  5. SkusNestedResourceTypeFirst
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.providerhub.SkusNestedResourceTypeFirst

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    Azure REST API version: 2021-09-01-preview. Prior API version in Azure Native 1.x: 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 main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/providerhub/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := providerhub.NewSkusNestedResourceTypeFirst(ctx, "skusNestedResourceTypeFirst", &providerhub.SkusNestedResourceTypeFirstArgs{
    			NestedResourceTypeFirst: pulumi.String("nestedResourceTypeFirst"),
    			Properties: &providerhub.SkuResourcePropertiesArgs{
    				SkuSettings: providerhub.SkuSettingArray{
    					&providerhub.SkuSettingArgs{
    						Kind: pulumi.String("Standard"),
    						Name: pulumi.String("freeSku"),
    						Tier: pulumi.String("Tier1"),
    					},
    					&providerhub.SkuSettingArgs{
    						Costs: providerhub.SkuCostArray{
    							&providerhub.SkuCostArgs{
    								MeterId: pulumi.String("xxx"),
    							},
    						},
    						Kind: pulumi.String("Premium"),
    						Name: pulumi.String("premiumSku"),
    						Tier: pulumi.String("Tier2"),
    					},
    				},
    			},
    			ProviderNamespace: pulumi.String("Microsoft.Contoso"),
    			ResourceType:      pulumi.String("testResourceType"),
    			Sku:               pulumi.String("testSku"),
    		})
    		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.providerhub.SkusNestedResourceTypeFirst;
    import com.pulumi.azurenative.providerhub.SkusNestedResourceTypeFirstArgs;
    import com.pulumi.azurenative.providerhub.inputs.SkuResourcePropertiesArgs;
    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(SkuResourcePropertiesArgs.builder()
                    .skuSettings(                
                        SkuSettingArgs.builder()
                            .kind("Standard")
                            .name("freeSku")
                            .tier("Tier1")
                            .build(),
                        SkuSettingArgs.builder()
                            .costs(SkuCostArgs.builder()
                                .meterId("xxx")
                                .build())
                            .kind("Premium")
                            .name("premiumSku")
                            .tier("Tier2")
                            .build())
                    .build())
                .providerNamespace("Microsoft.Contoso")
                .resourceType("testResourceType")
                .sku("testSku")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    skus_nested_resource_type_first = azure_native.providerhub.SkusNestedResourceTypeFirst("skusNestedResourceTypeFirst",
        nested_resource_type_first="nestedResourceTypeFirst",
        properties=azure_native.providerhub.SkuResourcePropertiesArgs(
            sku_settings=[
                azure_native.providerhub.SkuSettingArgs(
                    kind="Standard",
                    name="freeSku",
                    tier="Tier1",
                ),
                azure_native.providerhub.SkuSettingArgs(
                    costs=[azure_native.providerhub.SkuCostArgs(
                        meter_id="xxx",
                    )],
                    kind="Premium",
                    name="premiumSku",
                    tier="Tier2",
                ),
            ],
        ),
        provider_namespace="Microsoft.Contoso",
        resource_type="testResourceType",
        sku="testSku")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const skusNestedResourceTypeFirst = new azure_native.providerhub.SkusNestedResourceTypeFirst("skusNestedResourceTypeFirst", {
        nestedResourceTypeFirst: "nestedResourceTypeFirst",
        properties: {
            skuSettings: [
                {
                    kind: "Standard",
                    name: "freeSku",
                    tier: "Tier1",
                },
                {
                    costs: [{
                        meterId: "xxx",
                    }],
                    kind: "Premium",
                    name: "premiumSku",
                    tier: "Tier2",
                },
            ],
        },
        providerNamespace: "Microsoft.Contoso",
        resourceType: "testResourceType",
        sku: "testSku",
    });
    
    resources:
      skusNestedResourceTypeFirst:
        type: azure-native:providerhub:SkusNestedResourceTypeFirst
        properties:
          nestedResourceTypeFirst: nestedResourceTypeFirst
          properties:
            skuSettings:
              - kind: Standard
                name: freeSku
                tier: Tier1
              - costs:
                  - meterId: xxx
                kind: Premium
                name: premiumSku
                tier: Tier2
          providerNamespace: Microsoft.Contoso
          resourceType: testResourceType
          sku: testSku
    

    Create SkusNestedResourceTypeFirst Resource

    new SkusNestedResourceTypeFirst(name: string, args: SkusNestedResourceTypeFirstArgs, opts?: CustomResourceOptions);
    @overload
    def SkusNestedResourceTypeFirst(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    nested_resource_type_first: Optional[str] = None,
                                    properties: Optional[SkuResourcePropertiesArgs] = None,
                                    provider_namespace: Optional[str] = None,
                                    resource_type: Optional[str] = None,
                                    sku: Optional[str] = None)
    @overload
    def SkusNestedResourceTypeFirst(resource_name: str,
                                    args: SkusNestedResourceTypeFirstArgs,
                                    opts: Optional[ResourceOptions] = None)
    func NewSkusNestedResourceTypeFirst(ctx *Context, name string, args SkusNestedResourceTypeFirstArgs, opts ...ResourceOption) (*SkusNestedResourceTypeFirst, error)
    public SkusNestedResourceTypeFirst(string name, SkusNestedResourceTypeFirstArgs args, CustomResourceOptions? opts = null)
    public SkusNestedResourceTypeFirst(String name, SkusNestedResourceTypeFirstArgs args)
    public SkusNestedResourceTypeFirst(String name, SkusNestedResourceTypeFirstArgs args, CustomResourceOptions options)
    
    type: azure-native:providerhub:SkusNestedResourceTypeFirst
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SkusNestedResourceTypeFirstArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SkusNestedResourceTypeFirstArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SkusNestedResourceTypeFirstArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SkusNestedResourceTypeFirstArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SkusNestedResourceTypeFirstArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SkusNestedResourceTypeFirst Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SkusNestedResourceTypeFirst resource accepts the following input properties:

    NestedResourceTypeFirst string
    The first child resource type.
    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    ResourceType string
    The resource type.
    Properties Pulumi.AzureNative.ProviderHub.Inputs.SkuResourceProperties
    Sku string
    The SKU.
    NestedResourceTypeFirst string
    The first child resource type.
    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    ResourceType string
    The resource type.
    Properties SkuResourcePropertiesArgs
    Sku string
    The SKU.
    nestedResourceTypeFirst String
    The first child resource type.
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    resourceType String
    The resource type.
    properties SkuResourceProperties
    sku String
    The SKU.
    nestedResourceTypeFirst string
    The first child resource type.
    providerNamespace string
    The name of the resource provider hosted within ProviderHub.
    resourceType string
    The resource type.
    properties SkuResourceProperties
    sku string
    The SKU.
    nested_resource_type_first str
    The first child resource type.
    provider_namespace str
    The name of the resource provider hosted within ProviderHub.
    resource_type str
    The resource type.
    properties SkuResourcePropertiesArgs
    sku str
    The SKU.
    nestedResourceTypeFirst String
    The first child resource type.
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    resourceType String
    The resource type.
    properties Property Map
    sku String
    The SKU.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SkusNestedResourceTypeFirst resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.ProviderHub.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ProvisioningState, ProvisioningStateArgs

    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    ProvisioningStateNotSpecified
    NotSpecified
    ProvisioningStateAccepted
    Accepted
    ProvisioningStateRunning
    Running
    ProvisioningStateCreating
    Creating
    ProvisioningStateCreated
    Created
    ProvisioningStateDeleting
    Deleting
    ProvisioningStateDeleted
    Deleted
    ProvisioningStateCanceled
    Canceled
    ProvisioningStateFailed
    Failed
    ProvisioningStateSucceeded
    Succeeded
    ProvisioningStateMovingResources
    MovingResources
    ProvisioningStateTransientFailure
    TransientFailure
    ProvisioningStateRolloutInProgress
    RolloutInProgress
    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    NOT_SPECIFIED
    NotSpecified
    ACCEPTED
    Accepted
    RUNNING
    Running
    CREATING
    Creating
    CREATED
    Created
    DELETING
    Deleting
    DELETED
    Deleted
    CANCELED
    Canceled
    FAILED
    Failed
    SUCCEEDED
    Succeeded
    MOVING_RESOURCES
    MovingResources
    TRANSIENT_FAILURE
    TransientFailure
    ROLLOUT_IN_PROGRESS
    RolloutInProgress
    "NotSpecified"
    NotSpecified
    "Accepted"
    Accepted
    "Running"
    Running
    "Creating"
    Creating
    "Created"
    Created
    "Deleting"
    Deleting
    "Deleted"
    Deleted
    "Canceled"
    Canceled
    "Failed"
    Failed
    "Succeeded"
    Succeeded
    "MovingResources"
    MovingResources
    "TransientFailure"
    TransientFailure
    "RolloutInProgress"
    RolloutInProgress

    SkuCapability, SkuCapabilityArgs

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    SkuCapabilityResponse, SkuCapabilityResponseArgs

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    SkuCost, SkuCostArgs

    MeterId string
    ExtendedUnit string
    Quantity int
    MeterId string
    ExtendedUnit string
    Quantity int
    meterId String
    extendedUnit String
    quantity Integer
    meterId string
    extendedUnit string
    quantity number
    meterId String
    extendedUnit String
    quantity Number

    SkuCostResponse, SkuCostResponseArgs

    MeterId string
    ExtendedUnit string
    Quantity int
    MeterId string
    ExtendedUnit string
    Quantity int
    meterId String
    extendedUnit String
    quantity Integer
    meterId string
    extendedUnit string
    quantity number
    meterId String
    extendedUnit String
    quantity Number

    SkuLocationInfo, SkuLocationInfoArgs

    SkuLocationInfoResponse, SkuLocationInfoResponseArgs

    SkuResourceProperties, SkuResourcePropertiesArgs

    SkuSettings []SkuSetting
    ProvisioningState string | ProvisioningState
    The provisioned state of the resource.
    skuSettings List<SkuSetting>
    provisioningState String | ProvisioningState
    The provisioned state of the resource.
    skuSettings SkuSetting[]
    provisioningState string | ProvisioningState
    The provisioned state of the resource.
    sku_settings Sequence[SkuSetting]
    provisioning_state str | ProvisioningState
    The provisioned state of the resource.

    SkuResourceResponseProperties, SkuResourceResponsePropertiesArgs

    SkuSettings []SkuSettingResponse
    ProvisioningState string
    The provisioned state of the resource.
    skuSettings List<SkuSettingResponse>
    provisioningState String
    The provisioned state of the resource.
    skuSettings SkuSettingResponse[]
    provisioningState string
    The provisioned state of the resource.
    sku_settings Sequence[SkuSettingResponse]
    provisioning_state str
    The provisioned state of the resource.
    skuSettings List<Property Map>
    provisioningState String
    The provisioned state of the resource.

    SkuScaleType, SkuScaleTypeArgs

    None
    None
    Manual
    Manual
    Automatic
    Automatic
    SkuScaleTypeNone
    None
    SkuScaleTypeManual
    Manual
    SkuScaleTypeAutomatic
    Automatic
    None
    None
    Manual
    Manual
    Automatic
    Automatic
    None
    None
    Manual
    Manual
    Automatic
    Automatic
    NONE
    None
    MANUAL
    Manual
    AUTOMATIC
    Automatic
    "None"
    None
    "Manual"
    Manual
    "Automatic"
    Automatic

    SkuSetting, SkuSettingArgs

    SkuSettingCapacity, SkuSettingCapacityArgs

    minimum Integer
    default_ Integer
    maximum Integer
    scaleType String | SkuScaleType
    minimum number
    default number
    maximum number
    scaleType string | SkuScaleType

    SkuSettingResponse, SkuSettingResponseArgs

    SkuSettingResponseCapacity, SkuSettingResponseCapacityArgs

    minimum Integer
    default_ Integer
    maximum Integer
    scaleType String
    minimum number
    default number
    maximum number
    scaleType string
    minimum Number
    default Number
    maximum Number
    scaleType String

    SkuZoneDetail, SkuZoneDetailArgs

    SkuZoneDetailResponse, SkuZoneDetailResponseArgs

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi