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
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)
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.
- 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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