azure-native.providerhub.Skus
Explore with Pulumi AI
API Version: 2020-11-20.
Example Usage
Skus_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var skus = new AzureNative.ProviderHub.Skus("skus", new()
{
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",
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.providerhub.Skus;
import com.pulumi.azurenative.providerhub.SkusArgs;
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 skus = new Skus("skus", SkusArgs.builder()
.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 pulumi
import pulumi_azure_native as azure_native
skus = azure_native.providerhub.Skus("skus",
properties=azure_native.providerhub.SkuResourceResponsePropertiesArgs(
sku_settings=[
azure_native.providerhub.SkuSettingArgs(
kind="Standard",
name="freeSku",
tier="Tier1",
),
{
"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 skus = new azure_native.providerhub.Skus("skus", {
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:
skus:
type: azure-native:providerhub:Skus
properties:
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 Skus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Skus(name: string, args: SkusArgs, opts?: CustomResourceOptions);
@overload
def Skus(resource_name: str,
args: SkusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Skus(resource_name: str,
opts: Optional[ResourceOptions] = None,
provider_namespace: Optional[str] = None,
resource_type: Optional[str] = None,
properties: Optional[SkuResourcePropertiesArgs] = None,
sku: Optional[str] = None)
func NewSkus(ctx *Context, name string, args SkusArgs, opts ...ResourceOption) (*Skus, error)
public Skus(string name, SkusArgs args, CustomResourceOptions? opts = null)
type: azure-native:providerhub:Skus
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SkusArgs
- 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 SkusArgs
- 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 SkusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SkusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SkusArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var skusResource = new AzureNative.Providerhub.Skus("skusResource", new()
{
ProviderNamespace = "string",
ResourceType = "string",
Properties =
{
{ "skuSettings", new[]
{
{
{ "name", "string" },
{ "capabilities", new[]
{
{
{ "name", "string" },
{ "value", "string" },
},
} },
{ "capacity",
{
{ "minimum", 0 },
{ "default", 0 },
{ "maximum", 0 },
{ "scaleType", "string" },
} },
{ "costs", new[]
{
{
{ "meterId", "string" },
{ "extendedUnit", "string" },
{ "quantity", 0 },
},
} },
{ "family", "string" },
{ "kind", "string" },
{ "locationInfo", new[]
{
{
{ "location", "string" },
{ "extendedLocations", new[]
{
"string",
} },
{ "type", "string" },
{ "zoneDetails", new[]
{
{
{ "capabilities", new[]
{
{
{ "name", "string" },
{ "value", "string" },
},
} },
{ "name", new[]
{
"string",
} },
},
} },
{ "zones", new[]
{
"string",
} },
},
} },
{ "locations", new[]
{
"string",
} },
{ "requiredFeatures", new[]
{
"string",
} },
{ "requiredQuotaIds", new[]
{
"string",
} },
{ "size", "string" },
{ "tier", "string" },
},
} },
{ "provisioningState", "string" },
},
Sku = "string",
});
example, err := providerhub.NewSkus(ctx, "skusResource", &providerhub.SkusArgs{
ProviderNamespace: "string",
ResourceType: "string",
Properties: map[string]interface{}{
"skuSettings": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"capabilities": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"value": "string",
},
},
"capacity": map[string]interface{}{
"minimum": 0,
"default": 0,
"maximum": 0,
"scaleType": "string",
},
"costs": []map[string]interface{}{
map[string]interface{}{
"meterId": "string",
"extendedUnit": "string",
"quantity": 0,
},
},
"family": "string",
"kind": "string",
"locationInfo": []map[string]interface{}{
map[string]interface{}{
"location": "string",
"extendedLocations": []string{
"string",
},
"type": "string",
"zoneDetails": []map[string]interface{}{
map[string]interface{}{
"capabilities": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"value": "string",
},
},
"name": []string{
"string",
},
},
},
"zones": []string{
"string",
},
},
},
"locations": []string{
"string",
},
"requiredFeatures": []string{
"string",
},
"requiredQuotaIds": []string{
"string",
},
"size": "string",
"tier": "string",
},
},
"provisioningState": "string",
},
Sku: "string",
})
var skusResource = new Skus("skusResource", SkusArgs.builder()
.providerNamespace("string")
.resourceType("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.sku("string")
.build());
skus_resource = azure_native.providerhub.Skus("skusResource",
provider_namespace=string,
resource_type=string,
properties={
skuSettings: [{
name: string,
capabilities: [{
name: string,
value: string,
}],
capacity: {
minimum: 0,
default: 0,
maximum: 0,
scaleType: string,
},
costs: [{
meterId: string,
extendedUnit: string,
quantity: 0,
}],
family: string,
kind: string,
locationInfo: [{
location: string,
extendedLocations: [string],
type: string,
zoneDetails: [{
capabilities: [{
name: string,
value: string,
}],
name: [string],
}],
zones: [string],
}],
locations: [string],
requiredFeatures: [string],
requiredQuotaIds: [string],
size: string,
tier: string,
}],
provisioningState: string,
},
sku=string)
const skusResource = new azure_native.providerhub.Skus("skusResource", {
providerNamespace: "string",
resourceType: "string",
properties: {
skuSettings: [{
name: "string",
capabilities: [{
name: "string",
value: "string",
}],
capacity: {
minimum: 0,
"default": 0,
maximum: 0,
scaleType: "string",
},
costs: [{
meterId: "string",
extendedUnit: "string",
quantity: 0,
}],
family: "string",
kind: "string",
locationInfo: [{
location: "string",
extendedLocations: ["string"],
type: "string",
zoneDetails: [{
capabilities: [{
name: "string",
value: "string",
}],
name: ["string"],
}],
zones: ["string"],
}],
locations: ["string"],
requiredFeatures: ["string"],
requiredQuotaIds: ["string"],
size: "string",
tier: "string",
}],
provisioningState: "string",
},
sku: "string",
});
type: azure-native:providerhub:Skus
properties:
properties:
provisioningState: string
skuSettings:
- capabilities:
- name: string
value: string
capacity:
default: 0
maximum: 0
minimum: 0
scaleType: string
costs:
- extendedUnit: string
meterId: string
quantity: 0
family: string
kind: string
locationInfo:
- extendedLocations:
- string
location: string
type: string
zoneDetails:
- capabilities:
- name: string
value: string
name:
- string
zones:
- string
locations:
- string
name: string
requiredFeatures:
- string
requiredQuotaIds:
- string
size: string
tier: string
providerNamespace: string
resourceType: string
sku: string
Skus 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 Skus resource accepts the following input properties:
- Provider
Namespace string - The name of the resource provider hosted within ProviderHub.
- Resource
Type string - The resource type.
- Properties
Pulumi.
Azure Native. Provider Hub. Inputs. Sku Resource Properties - Sku string
- The SKU.
- Provider
Namespace string - The name of the resource provider hosted within ProviderHub.
- Resource
Type string - The resource type.
- Properties
Sku
Resource Properties Args - Sku string
- The SKU.
- provider
Namespace String - The name of the resource provider hosted within ProviderHub.
- resource
Type String - The resource type.
- properties
Sku
Resource Properties - sku String
- The SKU.
- provider
Namespace string - The name of the resource provider hosted within ProviderHub.
- resource
Type string - The resource type.
- properties
Sku
Resource Properties - sku string
- The SKU.
- provider_
namespace str - The name of the resource provider hosted within ProviderHub.
- resource_
type str - The resource type.
- properties
Sku
Resource Properties Args - sku str
- The SKU.
- provider
Namespace String - The name of the resource provider hosted within ProviderHub.
- resource
Type String - The resource type.
- properties Property Map
- sku String
- The SKU.
Outputs
All input properties are implicitly available as output properties. Additionally, the Skus resource produces the following output properties:
Supporting Types
ExtendedLocationType, ExtendedLocationTypeArgs
- Not
Specified - NotSpecified
- Edge
Zone - EdgeZone
- Arc
Zone - ArcZone
- Extended
Location Type Not Specified - NotSpecified
- Extended
Location Type Edge Zone - EdgeZone
- Extended
Location Type Arc Zone - ArcZone
- Not
Specified - NotSpecified
- Edge
Zone - EdgeZone
- Arc
Zone - ArcZone
- Not
Specified - NotSpecified
- Edge
Zone - EdgeZone
- Arc
Zone - ArcZone
- NOT_SPECIFIED
- NotSpecified
- EDGE_ZONE
- EdgeZone
- ARC_ZONE
- ArcZone
- "Not
Specified" - NotSpecified
- "Edge
Zone" - EdgeZone
- "Arc
Zone" - ArcZone
ProvisioningState, ProvisioningStateArgs
- 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
- Provisioning
State Not Specified - NotSpecified
- Provisioning
State Accepted - Accepted
- Provisioning
State Running - Running
- Provisioning
State Creating - Creating
- Provisioning
State Created - Created
- Provisioning
State Deleting - Deleting
- Provisioning
State Deleted - Deleted
- Provisioning
State Canceled - Canceled
- Provisioning
State Failed - Failed
- Provisioning
State Succeeded - Succeeded
- Provisioning
State Moving Resources - MovingResources
- Provisioning
State Transient Failure - TransientFailure
- Provisioning
State Rollout In Progress - 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
- 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
- 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
- "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
SkuCapability, SkuCapabilityArgs
SkuCapabilityResponse, SkuCapabilityResponseArgs
SkuCost, SkuCostArgs
- Meter
Id string - Extended
Unit string - Quantity int
- Meter
Id string - Extended
Unit string - Quantity int
- meter
Id String - extended
Unit String - quantity Integer
- meter
Id string - extended
Unit string - quantity number
- meter_
id str - extended_
unit str - quantity int
- meter
Id String - extended
Unit String - quantity Number
SkuCostResponse, SkuCostResponseArgs
- Meter
Id string - Extended
Unit string - Quantity int
- Meter
Id string - Extended
Unit string - Quantity int
- meter
Id String - extended
Unit String - quantity Integer
- meter
Id string - extended
Unit string - quantity number
- meter_
id str - extended_
unit str - quantity int
- meter
Id String - extended
Unit String - quantity Number
SkuLocationInfo, SkuLocationInfoArgs
- Location string
- Extended
Locations List<string> - Type
string | Pulumi.
Azure Native. Provider Hub. Extended Location Type - Zone
Details List<Pulumi.Azure Native. Provider Hub. Inputs. Sku Zone Detail> - Zones List<string>
- Location string
- Extended
Locations []string - Type
string | Extended
Location Type - Zone
Details []SkuZone Detail - Zones []string
- location String
- extended
Locations List<String> - type
String | Extended
Location Type - zone
Details List<SkuZone Detail> - zones List<String>
- location string
- extended
Locations string[] - type
string | Extended
Location Type - zone
Details SkuZone Detail[] - zones string[]
- location str
- extended_
locations Sequence[str] - type
str | Extended
Location Type - zone_
details Sequence[SkuZone Detail] - zones Sequence[str]
- location String
- extended
Locations List<String> - type
String | "Not
Specified" | "Edge Zone" | "Arc Zone" - zone
Details List<Property Map> - zones List<String>
SkuLocationInfoResponse, SkuLocationInfoResponseArgs
- Location string
- Extended
Locations List<string> - Type string
- Zone
Details List<Pulumi.Azure Native. Provider Hub. Inputs. Sku Zone Detail Response> - Zones List<string>
- Location string
- Extended
Locations []string - Type string
- Zone
Details []SkuZone Detail Response - Zones []string
- location String
- extended
Locations List<String> - type String
- zone
Details List<SkuZone Detail Response> - zones List<String>
- location string
- extended
Locations string[] - type string
- zone
Details SkuZone Detail Response[] - zones string[]
- location str
- extended_
locations Sequence[str] - type str
- zone_
details Sequence[SkuZone Detail Response] - zones Sequence[str]
- location String
- extended
Locations List<String> - type String
- zone
Details List<Property Map> - zones List<String>
SkuResourceProperties, SkuResourcePropertiesArgs
SkuResourceResponseProperties, SkuResourceResponsePropertiesArgs
SkuScaleType, SkuScaleTypeArgs
- None
- None
- Manual
- Manual
- Automatic
- Automatic
- Sku
Scale Type None - None
- Sku
Scale Type Manual - Manual
- Sku
Scale Type Automatic - 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
- Name string
- Capabilities
List<Pulumi.
Azure Native. Provider Hub. Inputs. Sku Capability> - Capacity
Pulumi.
Azure Native. Provider Hub. Inputs. Sku Setting Capacity - Costs
List<Pulumi.
Azure Native. Provider Hub. Inputs. Sku Cost> - Family string
- Kind string
- Location
Info List<Pulumi.Azure Native. Provider Hub. Inputs. Sku Location Info> - Locations List<string>
- Required
Features List<string> - Required
Quota List<string>Ids - Size string
- Tier string
- Name string
- Capabilities
[]Sku
Capability - Capacity
Sku
Setting Capacity - Costs
[]Sku
Cost - Family string
- Kind string
- Location
Info []SkuLocation Info - Locations []string
- Required
Features []string - Required
Quota []stringIds - Size string
- Tier string
- name String
- capabilities
List<Sku
Capability> - capacity
Sku
Setting Capacity - costs
List<Sku
Cost> - family String
- kind String
- location
Info List<SkuLocation Info> - locations List<String>
- required
Features List<String> - required
Quota List<String>Ids - size String
- tier String
- name string
- capabilities
Sku
Capability[] - capacity
Sku
Setting Capacity - costs
Sku
Cost[] - family string
- kind string
- location
Info SkuLocation Info[] - locations string[]
- required
Features string[] - required
Quota string[]Ids - size string
- tier string
- name str
- capabilities
Sequence[Sku
Capability] - capacity
Sku
Setting Capacity - costs
Sequence[Sku
Cost] - family str
- kind str
- location_
info Sequence[SkuLocation Info] - locations Sequence[str]
- required_
features Sequence[str] - required_
quota_ Sequence[str]ids - size str
- tier str
- name String
- capabilities List<Property Map>
- capacity Property Map
- costs List<Property Map>
- family String
- kind String
- location
Info List<Property Map> - locations List<String>
- required
Features List<String> - required
Quota List<String>Ids - size String
- tier String
SkuSettingCapacity, SkuSettingCapacityArgs
- Minimum int
- Default int
- Maximum int
- Scale
Type string | Pulumi.Azure Native. Provider Hub. Sku Scale Type
- Minimum int
- Default int
- Maximum int
- Scale
Type string | SkuScale Type
- minimum Integer
- default_ Integer
- maximum Integer
- scale
Type String | SkuScale Type
- minimum number
- default number
- maximum number
- scale
Type string | SkuScale Type
- minimum int
- default int
- maximum int
- scale_
type str | SkuScale Type
- minimum Number
- default Number
- maximum Number
- scale
Type String | "None" | "Manual" | "Automatic"
SkuSettingResponse, SkuSettingResponseArgs
- Name string
- Capabilities
List<Pulumi.
Azure Native. Provider Hub. Inputs. Sku Capability Response> - Capacity
Pulumi.
Azure Native. Provider Hub. Inputs. Sku Setting Response Capacity - Costs
List<Pulumi.
Azure Native. Provider Hub. Inputs. Sku Cost Response> - Family string
- Kind string
- Location
Info List<Pulumi.Azure Native. Provider Hub. Inputs. Sku Location Info Response> - Locations List<string>
- Required
Features List<string> - Required
Quota List<string>Ids - Size string
- Tier string
- Name string
- Capabilities
[]Sku
Capability Response - Capacity
Sku
Setting Response Capacity - Costs
[]Sku
Cost Response - Family string
- Kind string
- Location
Info []SkuLocation Info Response - Locations []string
- Required
Features []string - Required
Quota []stringIds - Size string
- Tier string
- name String
- capabilities
List<Sku
Capability Response> - capacity
Sku
Setting Response Capacity - costs
List<Sku
Cost Response> - family String
- kind String
- location
Info List<SkuLocation Info Response> - locations List<String>
- required
Features List<String> - required
Quota List<String>Ids - size String
- tier String
- name string
- capabilities
Sku
Capability Response[] - capacity
Sku
Setting Response Capacity - costs
Sku
Cost Response[] - family string
- kind string
- location
Info SkuLocation Info Response[] - locations string[]
- required
Features string[] - required
Quota string[]Ids - size string
- tier string
- name str
- capabilities
Sequence[Sku
Capability Response] - capacity
Sku
Setting Response Capacity - costs
Sequence[Sku
Cost Response] - family str
- kind str
- location_
info Sequence[SkuLocation Info Response] - locations Sequence[str]
- required_
features Sequence[str] - required_
quota_ Sequence[str]ids - size str
- tier str
- name String
- capabilities List<Property Map>
- capacity Property Map
- costs List<Property Map>
- family String
- kind String
- location
Info List<Property Map> - locations List<String>
- required
Features List<String> - required
Quota List<String>Ids - size String
- tier String
SkuSettingResponseCapacity, SkuSettingResponseCapacityArgs
- minimum int
- default int
- maximum int
- scale_
type str
SkuZoneDetail, SkuZoneDetailArgs
- Capabilities
[]Sku
Capability - Name []string
- capabilities
List<Sku
Capability> - name List<String>
- capabilities
Sku
Capability[] - name string[]
- capabilities
Sequence[Sku
Capability] - name Sequence[str]
- capabilities List<Property Map>
- name List<String>
SkuZoneDetailResponse, SkuZoneDetailResponseArgs
- Capabilities
[]Sku
Capability Response - Name []string
- capabilities
List<Sku
Capability Response> - name List<String>
- capabilities
Sku
Capability Response[] - name string[]
- capabilities
Sequence[Sku
Capability Response] - name Sequence[str]
- capabilities List<Property Map>
- name List<String>
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:providerhub:Skus Microsoft.Contoso/ /subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0