gcp.contactcenterinsights.View
Explore with Pulumi AI
Insights View resource for filtering conversations
To get more information about View, see:
Example Usage
Contact Center Insights View Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basicView = new gcp.contactcenterinsights.View("basic_view", {
location: "us-central1",
displayName: "view-display-name",
value: "medium=\"CHAT\"",
});
import pulumi
import pulumi_gcp as gcp
basic_view = gcp.contactcenterinsights.View("basic_view",
location="us-central1",
display_name="view-display-name",
value="medium=\"CHAT\"")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/contactcenterinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := contactcenterinsights.NewView(ctx, "basic_view", &contactcenterinsights.ViewArgs{
Location: pulumi.String("us-central1"),
DisplayName: pulumi.String("view-display-name"),
Value: pulumi.String("medium=\"CHAT\""),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basicView = new Gcp.ContactCenterInsights.View("basic_view", new()
{
Location = "us-central1",
DisplayName = "view-display-name",
Value = "medium=\"CHAT\"",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.contactcenterinsights.View;
import com.pulumi.gcp.contactcenterinsights.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 basicView = new View("basicView", ViewArgs.builder()
.location("us-central1")
.displayName("view-display-name")
.value("medium=\"CHAT\"")
.build());
}
}
resources:
basicView:
type: gcp:contactcenterinsights:View
name: basic_view
properties:
location: us-central1
displayName: view-display-name
value: medium="CHAT"
Contact Center Insights View Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const fullView = new gcp.contactcenterinsights.View("full_view", {
location: "us-central1",
displayName: "view-display-name",
value: "medium=\"PHONE_CALL\"",
});
import pulumi
import pulumi_gcp as gcp
full_view = gcp.contactcenterinsights.View("full_view",
location="us-central1",
display_name="view-display-name",
value="medium=\"PHONE_CALL\"")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/contactcenterinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := contactcenterinsights.NewView(ctx, "full_view", &contactcenterinsights.ViewArgs{
Location: pulumi.String("us-central1"),
DisplayName: pulumi.String("view-display-name"),
Value: pulumi.String("medium=\"PHONE_CALL\""),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var fullView = new Gcp.ContactCenterInsights.View("full_view", new()
{
Location = "us-central1",
DisplayName = "view-display-name",
Value = "medium=\"PHONE_CALL\"",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.contactcenterinsights.View;
import com.pulumi.gcp.contactcenterinsights.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 fullView = new View("fullView", ViewArgs.builder()
.location("us-central1")
.displayName("view-display-name")
.value("medium=\"PHONE_CALL\"")
.build());
}
}
resources:
fullView:
type: gcp:contactcenterinsights:View
name: full_view
properties:
location: us-central1
displayName: view-display-name
value: medium="PHONE_CALL"
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,
location: Optional[str] = None,
display_name: Optional[str] = None,
project: Optional[str] = None,
value: 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: gcp:contactcenterinsights: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 viewResource = new Gcp.ContactCenterInsights.View("viewResource", new()
{
Location = "string",
DisplayName = "string",
Project = "string",
Value = "string",
});
example, err := contactcenterinsights.NewView(ctx, "viewResource", &contactcenterinsights.ViewArgs{
Location: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Project: pulumi.String("string"),
Value: pulumi.String("string"),
})
var viewResource = new View("viewResource", ViewArgs.builder()
.location("string")
.displayName("string")
.project("string")
.value("string")
.build());
view_resource = gcp.contactcenterinsights.View("viewResource",
location="string",
display_name="string",
project="string",
value="string")
const viewResource = new gcp.contactcenterinsights.View("viewResource", {
location: "string",
displayName: "string",
project: "string",
value: "string",
});
type: gcp:contactcenterinsights:View
properties:
displayName: string
location: string
project: string
value: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The View resource accepts the following input properties:
- Location string
- Location of the resource.
- Display
Name string - The human-readable display name of the view.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Value string
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- Location string
- Location of the resource.
- Display
Name string - The human-readable display name of the view.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Value string
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- location String
- Location of the resource.
- display
Name String - The human-readable display name of the view.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- value String
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- location string
- Location of the resource.
- display
Name string - The human-readable display name of the view.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- value string
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- location str
- Location of the resource.
- display_
name str - The human-readable display name of the view.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- value str
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- location String
- Location of the resource.
- display
Name String - The human-readable display name of the view.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- value String
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
Outputs
All input properties are implicitly available as output properties. Additionally, the View resource produces the following output properties:
- Create
Time string - Output only. The time at which this view was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the view. Randomly generated by Insights.
- Update
Time string - Output only. The most recent time at which the view was updated.
- Create
Time string - Output only. The time at which this view was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the view. Randomly generated by Insights.
- Update
Time string - Output only. The most recent time at which the view was updated.
- create
Time String - Output only. The time at which this view was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the view. Randomly generated by Insights.
- update
Time String - Output only. The most recent time at which the view was updated.
- create
Time string - Output only. The time at which this view was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the view. Randomly generated by Insights.
- update
Time string - Output only. The most recent time at which the view was updated.
- create_
time str - Output only. The time at which this view was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the view. Randomly generated by Insights.
- update_
time str - Output only. The most recent time at which the view was updated.
- create
Time String - Output only. The time at which this view was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the view. Randomly generated by Insights.
- update
Time String - Output only. The most recent time at which the view was updated.
Look up Existing View Resource
Get an existing View resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ViewState, opts?: CustomResourceOptions): View
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
display_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
update_time: Optional[str] = None,
value: Optional[str] = None) -> View
func GetView(ctx *Context, name string, id IDInput, state *ViewState, opts ...ResourceOption) (*View, error)
public static View Get(string name, Input<string> id, ViewState? state, CustomResourceOptions? opts = null)
public static View get(String name, Output<String> id, ViewState state, CustomResourceOptions options)
resources: _: type: gcp:contactcenterinsights:View get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Output only. The time at which this view was created.
- Display
Name string - The human-readable display name of the view.
- Location string
- Location of the resource.
- Name string
- The resource name of the view. Randomly generated by Insights.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time string - Output only. The most recent time at which the view was updated.
- Value string
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- Create
Time string - Output only. The time at which this view was created.
- Display
Name string - The human-readable display name of the view.
- Location string
- Location of the resource.
- Name string
- The resource name of the view. Randomly generated by Insights.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time string - Output only. The most recent time at which the view was updated.
- Value string
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- create
Time String - Output only. The time at which this view was created.
- display
Name String - The human-readable display name of the view.
- location String
- Location of the resource.
- name String
- The resource name of the view. Randomly generated by Insights.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time String - Output only. The most recent time at which the view was updated.
- value String
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- create
Time string - Output only. The time at which this view was created.
- display
Name string - The human-readable display name of the view.
- location string
- Location of the resource.
- name string
- The resource name of the view. Randomly generated by Insights.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time string - Output only. The most recent time at which the view was updated.
- value string
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- create_
time str - Output only. The time at which this view was created.
- display_
name str - The human-readable display name of the view.
- location str
- Location of the resource.
- name str
- The resource name of the view. Randomly generated by Insights.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update_
time str - Output only. The most recent time at which the view was updated.
- value str
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
- create
Time String - Output only. The time at which this view was created.
- display
Name String - The human-readable display name of the view.
- location String
- Location of the resource.
- name String
- The resource name of the view. Randomly generated by Insights.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time String - Output only. The most recent time at which the view was updated.
- value String
- A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
Import
View can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/views/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using the pulumi import
command, View can be imported using one of the formats above. For example:
$ pulumi import gcp:contactcenterinsights/view:View default projects/{{project}}/locations/{{location}}/views/{{name}}
$ pulumi import gcp:contactcenterinsights/view:View default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:contactcenterinsights/view:View default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.