azure-native.customerinsights.View
Explore with Pulumi AI
The view resource format. API Version: 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 (
customerinsights "github.com/pulumi/pulumi-azure-native-sdk/customerinsights"
"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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new View(name: string, args: ViewArgs, opts?: CustomResourceOptions);
@overload
def View(resource_name: str,
args: ViewArgs,
opts: Optional[ResourceOptions] = None)
@overload
def View(resource_name: str,
opts: Optional[ResourceOptions] = None,
definition: Optional[str] = None,
hub_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
display_name: Optional[Mapping[str, str]] = None,
user_id: Optional[str] = None,
view_name: Optional[str] = None)
func NewView(ctx *Context, name string, args ViewArgs, opts ...ResourceOption) (*View, error)
public View(string name, ViewArgs args, CustomResourceOptions? opts = null)
type: azure-native:customerinsights:View
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeViewResource = new AzureNative.Customerinsights.View("azure-nativeViewResource", new()
{
Definition = "string",
HubName = "string",
ResourceGroupName = "string",
DisplayName =
{
{ "string", "string" },
},
UserId = "string",
ViewName = "string",
});
example, err := customerinsights.NewView(ctx, "azure-nativeViewResource", &customerinsights.ViewArgs{
Definition: "string",
HubName: "string",
ResourceGroupName: "string",
DisplayName: map[string]interface{}{
"string": "string",
},
UserId: "string",
ViewName: "string",
})
var azure_nativeViewResource = new View("azure-nativeViewResource", ViewArgs.builder()
.definition("string")
.hubName("string")
.resourceGroupName("string")
.displayName(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.userId("string")
.viewName("string")
.build());
azure_native_view_resource = azure_native.customerinsights.View("azure-nativeViewResource",
definition=string,
hub_name=string,
resource_group_name=string,
display_name={
string: string,
},
user_id=string,
view_name=string)
const azure_nativeViewResource = new azure_native.customerinsights.View("azure-nativeViewResource", {
definition: "string",
hubName: "string",
resourceGroupName: "string",
displayName: {
string: "string",
},
userId: "string",
viewName: "string",
});
type: azure-native:customerinsights:View
properties:
definition: string
displayName:
string: string
hubName: string
resourceGroupName: string
userId: string
viewName: string
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.
- Hub
Name string - The name of the hub.
- Resource
Group stringName - The name of the resource group.
- Display
Name Dictionary<string, string> - Localized display name for the view.
- User
Id string - the user ID.
- View
Name string - The name of the view.
- Definition string
- View definition.
- Hub
Name string - The name of the hub.
- Resource
Group stringName - The name of the resource group.
- Display
Name map[string]string - Localized display name for the view.
- User
Id string - the user ID.
- View
Name string - The name of the view.
- definition String
- View definition.
- hub
Name String - The name of the hub.
- resource
Group StringName - The name of the resource group.
- display
Name Map<String,String> - Localized display name for the view.
- user
Id String - the user ID.
- view
Name String - The name of the view.
- definition string
- View definition.
- hub
Name string - The name of the hub.
- resource
Group stringName - The name of the resource group.
- display
Name {[key: string]: string} - Localized display name for the view.
- user
Id string - the user ID.
- view
Name string - The name of the view.
- definition str
- View definition.
- hub_
name str - The name of the hub.
- resource_
group_ strname - 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.
- hub
Name String - The name of the hub.
- resource
Group StringName - The name of the resource group.
- display
Name Map<String> - Localized display name for the view.
- user
Id String - the user ID.
- view
Name 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:
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/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/views/testView
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