Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.dialogflow/v2.KnowledgeBase
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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 string
- The unique name of the resource.
- args KnowledgeBaseArgs
- 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 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 string
- The unique name of the resource.
- args KnowledgeBaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KnowledgeBaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var knowledgeBaseResource = new KnowledgeBase("knowledgeBaseResource", KnowledgeBaseArgs.builder()
.displayName("string")
.languageCode("string")
.location("string")
.name("string")
.project("string")
.build());
knowledge_base_resource = google_native.dialogflow.v2.KnowledgeBase("knowledgeBaseResource",
display_name="string",
language_code="string",
location="string",
name="string",
project="string")
const knowledgeBaseResource = new google_native.dialogflow.v2.KnowledgeBase("knowledgeBaseResource", {
displayName: "string",
languageCode: "string",
location: "string",
name: "string",
project: "string",
});
type: google-native:dialogflow/v2:KnowledgeBase
properties:
displayName: string
languageCode: string
location: string
name: string
project: string
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:
- Display
Name string - The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
- Language
Code 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 string
- Name string
- The knowledge base resource name. The name must be empty when creating a knowledge base. Format:
projects//locations//knowledgeBases/
. - Project string
- Display
Name string - The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
- Language
Code 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 string
- Name string
- The knowledge base resource name. The name must be empty when creating a knowledge base. Format:
projects//locations//knowledgeBases/
. - Project string
- display
Name String - The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
- language
Code 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 String
- name String
- The knowledge base resource name. The name must be empty when creating a knowledge base. Format:
projects//locations//knowledgeBases/
. - project String
- display
Name string - The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
- language
Code 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 string
- name string
- The knowledge base resource name. The name must be empty when creating a knowledge base. Format:
projects//locations//knowledgeBases/
. - project string
- display_
name 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 str
- name str
- The knowledge base resource name. The name must be empty when creating a knowledge base. Format:
projects//locations//knowledgeBases/
. - project str
- display
Name String - The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
- language
Code 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 String
- name String
- The knowledge base resource name. The name must be empty when creating a knowledge base. Format:
projects//locations//knowledgeBases/
. - project 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.