1. Packages
  2. Google Cloud Native
  3. API Docs
  4. dialogflow
  5. dialogflow/v2
  6. KnowledgeBase

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.dialogflow/v2.KnowledgeBase

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a knowledge base.

Create KnowledgeBase Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new KnowledgeBase(name: string, args: KnowledgeBaseArgs, opts?: CustomResourceOptions);
@overload
def KnowledgeBase(resource_name: str,
                  args: KnowledgeBaseArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def KnowledgeBase(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  display_name: Optional[str] = None,
                  language_code: Optional[str] = None,
                  location: Optional[str] = None,
                  name: Optional[str] = None,
                  project: Optional[str] = None)
func NewKnowledgeBase(ctx *Context, name string, args KnowledgeBaseArgs, opts ...ResourceOption) (*KnowledgeBase, error)
public KnowledgeBase(string name, KnowledgeBaseArgs args, CustomResourceOptions? opts = null)
public KnowledgeBase(String name, KnowledgeBaseArgs args)
public KnowledgeBase(String name, KnowledgeBaseArgs args, CustomResourceOptions options)
type: google-native:dialogflow/v2:KnowledgeBase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. KnowledgeBaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. KnowledgeBaseArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. KnowledgeBaseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. KnowledgeBaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. KnowledgeBaseArgs
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 knowledgeBaseResource = new GoogleNative.Dialogflow.V2.KnowledgeBase("knowledgeBaseResource", new()
{
    DisplayName = "string",
    LanguageCode = "string",
    Location = "string",
    Name = "string",
    Project = "string",
});
Copy
example, err := dialogflow.NewKnowledgeBase(ctx, "knowledgeBaseResource", &dialogflow.KnowledgeBaseArgs{
	DisplayName:  pulumi.String("string"),
	LanguageCode: pulumi.String("string"),
	Location:     pulumi.String("string"),
	Name:         pulumi.String("string"),
	Project:      pulumi.String("string"),
})
Copy
var knowledgeBaseResource = new KnowledgeBase("knowledgeBaseResource", KnowledgeBaseArgs.builder()
    .displayName("string")
    .languageCode("string")
    .location("string")
    .name("string")
    .project("string")
    .build());
Copy
knowledge_base_resource = google_native.dialogflow.v2.KnowledgeBase("knowledgeBaseResource",
    display_name="string",
    language_code="string",
    location="string",
    name="string",
    project="string")
Copy
const knowledgeBaseResource = new google_native.dialogflow.v2.KnowledgeBase("knowledgeBaseResource", {
    displayName: "string",
    languageCode: "string",
    location: "string",
    name: "string",
    project: "string",
});
Copy
type: google-native:dialogflow/v2:KnowledgeBase
properties:
    displayName: string
    languageCode: string
    location: string
    name: string
    project: string
Copy

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

DisplayName This property is required. string
The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
LanguageCode string
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, expect this to be present for non en-us languages. When unspecified, the default language code en-us applies.
Location Changes to this property will trigger replacement. string
Name string
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
Project Changes to this property will trigger replacement. string
DisplayName This property is required. string
The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
LanguageCode string
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, expect this to be present for non en-us languages. When unspecified, the default language code en-us applies.
Location Changes to this property will trigger replacement. string
Name string
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
Project Changes to this property will trigger replacement. string
displayName This property is required. String
The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
languageCode String
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, expect this to be present for non en-us languages. When unspecified, the default language code en-us applies.
location Changes to this property will trigger replacement. String
name String
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
project Changes to this property will trigger replacement. String
displayName This property is required. string
The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
languageCode string
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, expect this to be present for non en-us languages. When unspecified, the default language code en-us applies.
location Changes to this property will trigger replacement. string
name string
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
project Changes to this property will trigger replacement. string
display_name This property is required. str
The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
language_code str
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, expect this to be present for non en-us languages. When unspecified, the default language code en-us applies.
location Changes to this property will trigger replacement. str
name str
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
project Changes to this property will trigger replacement. str
displayName This property is required. String
The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
languageCode String
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, expect this to be present for non en-us languages. When unspecified, the default language code en-us applies.
location Changes to this property will trigger replacement. String
name String
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
project Changes to this property will trigger replacement. String

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi