azure-native-v2.customerinsights.Hub
Explore with Pulumi AI
Hub resource. Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
Create Hub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Hub(name: string, args: HubArgs, opts?: CustomResourceOptions);
@overload
def Hub(resource_name: str,
args: HubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Hub(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
hub_billing_info: Optional[HubBillingInfoFormatArgs] = None,
hub_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tenant_features: Optional[int] = None)
func NewHub(ctx *Context, name string, args HubArgs, opts ...ResourceOption) (*Hub, error)
public Hub(string name, HubArgs args, CustomResourceOptions? opts = null)
type: azure-native:customerinsights:Hub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. HubArgs - 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 hubResource = new AzureNative.Customerinsights.Hub("hubResource", new()
{
ResourceGroupName = "string",
HubBillingInfo =
{
{ "maxUnits", 0 },
{ "minUnits", 0 },
{ "skuName", "string" },
},
HubName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
TenantFeatures = 0,
});
example, err := customerinsights.NewHub(ctx, "hubResource", &customerinsights.HubArgs{
ResourceGroupName: "string",
HubBillingInfo: map[string]interface{}{
"maxUnits": 0,
"minUnits": 0,
"skuName": "string",
},
HubName: "string",
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
TenantFeatures: 0,
})
var hubResource = new Hub("hubResource", HubArgs.builder()
.resourceGroupName("string")
.hubBillingInfo(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.hubName("string")
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tenantFeatures(0)
.build());
hub_resource = azure_native.customerinsights.Hub("hubResource",
resource_group_name=string,
hub_billing_info={
maxUnits: 0,
minUnits: 0,
skuName: string,
},
hub_name=string,
location=string,
tags={
string: string,
},
tenant_features=0)
const hubResource = new azure_native.customerinsights.Hub("hubResource", {
resourceGroupName: "string",
hubBillingInfo: {
maxUnits: 0,
minUnits: 0,
skuName: "string",
},
hubName: "string",
location: "string",
tags: {
string: "string",
},
tenantFeatures: 0,
});
type: azure-native:customerinsights:Hub
properties:
hubBillingInfo:
maxUnits: 0
minUnits: 0
skuName: string
hubName: string
location: string
resourceGroupName: string
tags:
string: string
tenantFeatures: 0
Hub Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Hub resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Hub
Billing Pulumi.Info Azure Native. Customer Insights. Inputs. Hub Billing Info Format - Billing settings of the hub.
- Hub
Name Changes to this property will trigger replacement.
- The name of the Hub.
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- Tenant
Features int - The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Hub
Billing HubInfo Billing Info Format Args - Billing settings of the hub.
- Hub
Name Changes to this property will trigger replacement.
- The name of the Hub.
- Location string
- Resource location.
- map[string]string
- Resource tags.
- Tenant
Features int - The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- hub
Billing HubInfo Billing Info Format - Billing settings of the hub.
- hub
Name Changes to this property will trigger replacement.
- The name of the Hub.
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- tenant
Features Integer - The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- hub
Billing HubInfo Billing Info Format - Billing settings of the hub.
- hub
Name Changes to this property will trigger replacement.
- The name of the Hub.
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- tenant
Features number - The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- hub_
billing_ Hubinfo Billing Info Format Args - Billing settings of the hub.
- hub_
name Changes to this property will trigger replacement.
- The name of the Hub.
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- tenant_
features int - The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- hub
Billing Property MapInfo - Billing settings of the hub.
- hub
Name Changes to this property will trigger replacement.
- The name of the Hub.
- location String
- Resource location.
- Map<String>
- Resource tags.
- tenant
Features Number - The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
Outputs
All input properties are implicitly available as output properties. Additionally, the Hub resource produces the following output properties:
- Api
Endpoint string - API endpoint URL of the hub.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state of the hub.
- Type string
- Resource type.
- Web
Endpoint string - Web endpoint URL of the hub.
- Api
Endpoint string - API endpoint URL of the hub.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state of the hub.
- Type string
- Resource type.
- Web
Endpoint string - Web endpoint URL of the hub.
- api
Endpoint String - API endpoint URL of the hub.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning state of the hub.
- type String
- Resource type.
- web
Endpoint String - Web endpoint URL of the hub.
- api
Endpoint string - API endpoint URL of the hub.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - Provisioning state of the hub.
- type string
- Resource type.
- web
Endpoint string - Web endpoint URL of the hub.
- api_
endpoint str - API endpoint URL of the hub.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - Provisioning state of the hub.
- type str
- Resource type.
- web_
endpoint str - Web endpoint URL of the hub.
- api
Endpoint String - API endpoint URL of the hub.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning state of the hub.
- type String
- Resource type.
- web
Endpoint String - Web endpoint URL of the hub.
Supporting Types
HubBillingInfoFormat, HubBillingInfoFormatArgs
HubBillingInfoFormatResponse, HubBillingInfoFormatResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:customerinsights:Hub testHub2839 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0