1. Packages
  2. Azure Native
  3. API Docs
  4. customerinsights
  5. View
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.customerinsights.View

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

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

    Example Usage

    Views_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var view = new AzureNative.CustomerInsights.View("view", new()
        {
            Definition = "{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}",
            DisplayName = 
            {
                { "en", "some name" },
            },
            HubName = "sdkTestHub",
            ResourceGroupName = "TestHubRG",
            UserId = "testUser",
            ViewName = "testView",
        });
    
    });
    
    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.NewView(ctx, "view", &customerinsights.ViewArgs{
    			Definition: pulumi.String("{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}"),
    			DisplayName: pulumi.StringMap{
    				"en": pulumi.String("some name"),
    			},
    			HubName:           pulumi.String("sdkTestHub"),
    			ResourceGroupName: pulumi.String("TestHubRG"),
    			UserId:            pulumi.String("testUser"),
    			ViewName:          pulumi.String("testView"),
    		})
    		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.View;
    import com.pulumi.azurenative.customerinsights.ViewArgs;
    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 view = new View("view", ViewArgs.builder()        
                .definition("{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}")
                .displayName(Map.of("en", "some name"))
                .hubName("sdkTestHub")
                .resourceGroupName("TestHubRG")
                .userId("testUser")
                .viewName("testView")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    view = azure_native.customerinsights.View("view",
        definition="{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}",
        display_name={
            "en": "some name",
        },
        hub_name="sdkTestHub",
        resource_group_name="TestHubRG",
        user_id="testUser",
        view_name="testView")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const view = new azure_native.customerinsights.View("view", {
        definition: "{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}",
        displayName: {
            en: "some name",
        },
        hubName: "sdkTestHub",
        resourceGroupName: "TestHubRG",
        userId: "testUser",
        viewName: "testView",
    });
    
    resources:
      view:
        type: azure-native:customerinsights:View
        properties:
          definition: '{\"isProfileType\":false,\"profileTypes\":[],\"widgets\":[],\"style\":[]}'
          displayName:
            en: some name
          hubName: sdkTestHub
          resourceGroupName: TestHubRG
          userId: testUser
          viewName: testView
    

    Create View Resource

    new View(name: string, args: ViewArgs, opts?: CustomResourceOptions);
    @overload
    def View(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             definition: Optional[str] = None,
             display_name: Optional[Mapping[str, str]] = None,
             hub_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             user_id: Optional[str] = None,
             view_name: Optional[str] = None)
    @overload
    def View(resource_name: str,
             args: ViewArgs,
             opts: Optional[ResourceOptions] = None)
    func NewView(ctx *Context, name string, args ViewArgs, opts ...ResourceOption) (*View, error)
    public View(string name, ViewArgs args, CustomResourceOptions? opts = null)
    public View(String name, ViewArgs args)
    public View(String name, ViewArgs args, CustomResourceOptions options)
    
    type: azure-native:customerinsights:View
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ViewArgs
    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 ViewArgs
    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 ViewArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ViewArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ViewArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    View 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 View resource accepts the following input properties:

    Definition string
    View definition.
    HubName string
    The name of the hub.
    ResourceGroupName string
    The name of the resource group.
    DisplayName Dictionary<string, string>
    Localized display name for the view.
    UserId string
    the user ID.
    ViewName string
    The name of the view.
    Definition string
    View definition.
    HubName string
    The name of the hub.
    ResourceGroupName string
    The name of the resource group.
    DisplayName map[string]string
    Localized display name for the view.
    UserId string
    the user ID.
    ViewName string
    The name of the view.
    definition String
    View definition.
    hubName String
    The name of the hub.
    resourceGroupName String
    The name of the resource group.
    displayName Map<String,String>
    Localized display name for the view.
    userId String
    the user ID.
    viewName String
    The name of the view.
    definition string
    View definition.
    hubName string
    The name of the hub.
    resourceGroupName string
    The name of the resource group.
    displayName {[key: string]: string}
    Localized display name for the view.
    userId string
    the user ID.
    viewName string
    The name of the view.
    definition str
    View definition.
    hub_name str
    The name of the hub.
    resource_group_name str
    The name of the resource group.
    display_name Mapping[str, str]
    Localized display name for the view.
    user_id str
    the user ID.
    view_name str
    The name of the view.
    definition String
    View definition.
    hubName String
    The name of the hub.
    resourceGroupName String
    The name of the resource group.
    displayName Map<String>
    Localized display name for the view.
    userId String
    the user ID.
    viewName String
    The name of the view.

    Outputs

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

    Changed string
    Date time when view was last modified.
    Created string
    Date time when view was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    TenantId string
    the hub name.
    Type string
    Resource type.
    Changed string
    Date time when view was last modified.
    Created string
    Date time when view was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    TenantId string
    the hub name.
    Type string
    Resource type.
    changed String
    Date time when view was last modified.
    created String
    Date time when view was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    tenantId String
    the hub name.
    type String
    Resource type.
    changed string
    Date time when view was last modified.
    created string
    Date time when view was created.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    tenantId string
    the hub name.
    type string
    Resource type.
    changed str
    Date time when view was last modified.
    created str
    Date time when view was created.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    tenant_id str
    the hub name.
    type str
    Resource type.
    changed String
    Date time when view was last modified.
    created String
    Date time when view was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    tenantId String
    the hub name.
    type String
    Resource type.

    Import

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

    $ pulumi import azure-native:customerinsights:View sdkTestHub/testView /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName} 
    

    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