EntityType

class EntityType : KotlinCustomResource

Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries. To get more information about EntityType, see:

Example Usage

Dialogflow Entity Type Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.Agent;
import com.pulumi.gcp.diagflow.AgentArgs;
import com.pulumi.gcp.diagflow.EntityType;
import com.pulumi.gcp.diagflow.EntityTypeArgs;
import com.pulumi.gcp.diagflow.inputs.EntityTypeEntityArgs;
import com.pulumi.resources.CustomResourceOptions;
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 basicAgent = new Agent("basicAgent", AgentArgs.builder()
.displayName("example_agent")
.defaultLanguageCode("en")
.timeZone("America/New_York")
.build());
var basicEntityType = new EntityType("basicEntityType", EntityTypeArgs.builder()
.displayName("")
.kind("KIND_MAP")
.entities(
EntityTypeEntityArgs.builder()
.value("value1")
.synonyms(
"synonym1",
"synonym2")
.build(),
EntityTypeEntityArgs.builder()
.value("value2")
.synonyms(
"synonym3",
"synonym4")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(basicAgent)
.build());
}
}

Import

EntityType can be imported using any of these accepted formats:

$ pulumi import gcp:diagflow/entityType:EntityType default {{name}}

Properties

Link copied to clipboard
val displayName: Output<String>

The name of this entity type to be displayed on the console.

Link copied to clipboard

Enables fuzzy entity extraction during classification.

Link copied to clipboard

The collection of entity entries associated with the entity type. Structure is documented below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>

Indicates the kind of entity type.

Link copied to clipboard
val name: Output<String>

The unique identifier of the entity type. Format: projects//agent/entityTypes/.

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>