1. Packages
  2. Azure Native
  3. API Docs
  4. customerinsights
  5. Hub
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.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.customerinsights.Hub

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.37.0 published on Monday, Apr 15, 2024 by Pulumi

    Hub resource. Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.

    Example Usage

    Hubs_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var hub = new AzureNative.CustomerInsights.Hub("hub", new()
        {
            HubBillingInfo = new AzureNative.CustomerInsights.Inputs.HubBillingInfoFormatArgs
            {
                MaxUnits = 5,
                MinUnits = 1,
                SkuName = "B0",
            },
            HubName = "sdkTestHub",
            Location = "West US",
            ResourceGroupName = "TestHubRG",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/customerinsights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := customerinsights.NewHub(ctx, "hub", &customerinsights.HubArgs{
    			HubBillingInfo: &customerinsights.HubBillingInfoFormatArgs{
    				MaxUnits: pulumi.Int(5),
    				MinUnits: pulumi.Int(1),
    				SkuName:  pulumi.String("B0"),
    			},
    			HubName:           pulumi.String("sdkTestHub"),
    			Location:          pulumi.String("West US"),
    			ResourceGroupName: pulumi.String("TestHubRG"),
    		})
    		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.customerinsights.Hub;
    import com.pulumi.azurenative.customerinsights.HubArgs;
    import com.pulumi.azurenative.customerinsights.inputs.HubBillingInfoFormatArgs;
    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 hub = new Hub("hub", HubArgs.builder()        
                .hubBillingInfo(HubBillingInfoFormatArgs.builder()
                    .maxUnits(5)
                    .minUnits(1)
                    .skuName("B0")
                    .build())
                .hubName("sdkTestHub")
                .location("West US")
                .resourceGroupName("TestHubRG")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    hub = azure_native.customerinsights.Hub("hub",
        hub_billing_info=azure_native.customerinsights.HubBillingInfoFormatArgs(
            max_units=5,
            min_units=1,
            sku_name="B0",
        ),
        hub_name="sdkTestHub",
        location="West US",
        resource_group_name="TestHubRG")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const hub = new azure_native.customerinsights.Hub("hub", {
        hubBillingInfo: {
            maxUnits: 5,
            minUnits: 1,
            skuName: "B0",
        },
        hubName: "sdkTestHub",
        location: "West US",
        resourceGroupName: "TestHubRG",
    });
    
    resources:
      hub:
        type: azure-native:customerinsights:Hub
        properties:
          hubBillingInfo:
            maxUnits: 5
            minUnits: 1
            skuName: B0
          hubName: sdkTestHub
          location: West US
          resourceGroupName: TestHubRG
    

    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)
    public Hub(String name, HubArgs args)
    public Hub(String name, HubArgs args, CustomResourceOptions options)
    
    type: azure-native:customerinsights:Hub
    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 HubArgs
    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 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 string
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var hubResource = new AzureNative.CustomerInsights.Hub("hubResource", new()
    {
        ResourceGroupName = "string",
        HubBillingInfo = new AzureNative.CustomerInsights.Inputs.HubBillingInfoFormatArgs
        {
            MaxUnits = 0,
            MinUnits = 0,
            SkuName = "string",
        },
        HubName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TenantFeatures = 0,
    });
    
    example, err := customerinsights.NewHub(ctx, "hubResource", &customerinsights.HubArgs{
    ResourceGroupName: pulumi.String("string"),
    HubBillingInfo: &customerinsights.HubBillingInfoFormatArgs{
    MaxUnits: pulumi.Int(0),
    MinUnits: pulumi.Int(0),
    SkuName: pulumi.String("string"),
    },
    HubName: pulumi.String("string"),
    Location: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    TenantFeatures: pulumi.Int(0),
    })
    
    var hubResource = new Hub("hubResource", HubArgs.builder()        
        .resourceGroupName("string")
        .hubBillingInfo(HubBillingInfoFormatArgs.builder()
            .maxUnits(0)
            .minUnits(0)
            .skuName("string")
            .build())
        .hubName("string")
        .location("string")
        .tags(Map.of("string", "string"))
        .tenantFeatures(0)
        .build());
    
    hub_resource = azure_native.customerinsights.Hub("hubResource",
        resource_group_name="string",
        hub_billing_info=azure_native.customerinsights.HubBillingInfoFormatArgs(
            max_units=0,
            min_units=0,
            sku_name="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

    The Hub resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group.
    HubBillingInfo Pulumi.AzureNative.CustomerInsights.Inputs.HubBillingInfoFormat
    Billing settings of the hub.
    HubName string
    The name of the Hub.
    Location string
    Resource location.
    Tags Dictionary<string, string>
    Resource tags.
    TenantFeatures 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.
    ResourceGroupName string
    The name of the resource group.
    HubBillingInfo HubBillingInfoFormatArgs
    Billing settings of the hub.
    HubName string
    The name of the Hub.
    Location string
    Resource location.
    Tags map[string]string
    Resource tags.
    TenantFeatures 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.
    resourceGroupName String
    The name of the resource group.
    hubBillingInfo HubBillingInfoFormat
    Billing settings of the hub.
    hubName String
    The name of the Hub.
    location String
    Resource location.
    tags Map<String,String>
    Resource tags.
    tenantFeatures 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.
    resourceGroupName string
    The name of the resource group.
    hubBillingInfo HubBillingInfoFormat
    Billing settings of the hub.
    hubName string
    The name of the Hub.
    location string
    Resource location.
    tags {[key: string]: string}
    Resource tags.
    tenantFeatures 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 str
    The name of the resource group.
    hub_billing_info HubBillingInfoFormatArgs
    Billing settings of the hub.
    hub_name str
    The name of the Hub.
    location str
    Resource location.
    tags 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.
    resourceGroupName String
    The name of the resource group.
    hubBillingInfo Property Map
    Billing settings of the hub.
    hubName String
    The name of the Hub.
    location String
    Resource location.
    tags Map<String>
    Resource tags.
    tenantFeatures 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:

    ApiEndpoint string
    API endpoint URL of the hub.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    Provisioning state of the hub.
    Type string
    Resource type.
    WebEndpoint string
    Web endpoint URL of the hub.
    ApiEndpoint string
    API endpoint URL of the hub.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    Provisioning state of the hub.
    Type string
    Resource type.
    WebEndpoint string
    Web endpoint URL of the hub.
    apiEndpoint String
    API endpoint URL of the hub.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    Provisioning state of the hub.
    type String
    Resource type.
    webEndpoint String
    Web endpoint URL of the hub.
    apiEndpoint string
    API endpoint URL of the hub.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    provisioningState string
    Provisioning state of the hub.
    type string
    Resource type.
    webEndpoint 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.
    apiEndpoint String
    API endpoint URL of the hub.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    Provisioning state of the hub.
    type String
    Resource type.
    webEndpoint String
    Web endpoint URL of the hub.

    Supporting Types

    HubBillingInfoFormat, HubBillingInfoFormatArgs

    MaxUnits int
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    MinUnits int
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    SkuName string
    The sku name.
    MaxUnits int
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    MinUnits int
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    SkuName string
    The sku name.
    maxUnits Integer
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    minUnits Integer
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    skuName String
    The sku name.
    maxUnits number
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    minUnits number
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    skuName string
    The sku name.
    max_units int
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    min_units int
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    sku_name str
    The sku name.
    maxUnits Number
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    minUnits Number
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    skuName String
    The sku name.

    HubBillingInfoFormatResponse, HubBillingInfoFormatResponseArgs

    MaxUnits int
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    MinUnits int
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    SkuName string
    The sku name.
    MaxUnits int
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    MinUnits int
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    SkuName string
    The sku name.
    maxUnits Integer
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    minUnits Integer
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    skuName String
    The sku name.
    maxUnits number
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    minUnits number
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    skuName string
    The sku name.
    max_units int
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    min_units int
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    sku_name str
    The sku name.
    maxUnits Number
    The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.
    minUnits Number
    The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
    skuName String
    The sku name.

    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 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.37.0 published on Monday, Apr 15, 2024 by Pulumi