This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.
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/v2beta1:KnowledgeBase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_dialogflow_v2beta1_knowledge_base" "name" {
# resource properties
}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 google_nativeKnowledgeBaseResource = new GoogleNative.Dialogflow.V2Beta1.KnowledgeBase("google-nativeKnowledgeBaseResource", new()
{
DisplayName = "string",
LanguageCode = "string",
Location = "string",
Name = "string",
Project = "string",
});
example, err := dialogflowv2beta1.NewKnowledgeBase(ctx, "google-nativeKnowledgeBaseResource", &dialogflowv2beta1.KnowledgeBaseArgs{
DisplayName: pulumi.String("string"),
LanguageCode: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_dialogflow_v2beta1_knowledge_base" "google-nativeKnowledgeBaseResource" {
lifecycle {
create_before_destroy = true
}
display_name = "string"
language_code = "string"
location = "string"
name = "string"
project = "string"
}
var google_nativeKnowledgeBaseResource = new com.pulumi.googlenative.dialogflow_v2beta1.KnowledgeBase("google-nativeKnowledgeBaseResource", com.pulumi.googlenative.dialogflow_v2beta1.KnowledgeBaseArgs.builder()
.displayName("string")
.languageCode("string")
.location("string")
.name("string")
.project("string")
.build());
google_native_knowledge_base_resource = google_native.dialogflow.v2beta1.KnowledgeBase("google-nativeKnowledgeBaseResource",
display_name="string",
language_code="string",
location="string",
name="string",
project="string")
const google_nativeKnowledgeBaseResource = new google_native.dialogflow.v2beta1.KnowledgeBase("google-nativeKnowledgeBaseResource", {
displayName: "string",
languageCode: "string",
location: "string",
name: "string",
project: "string",
});
type: google-native:dialogflow/v2beta1: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, this is populated for all non en-us languages. If not populated, the default language 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, this is populated for all non en-us languages. If not populated, the default language 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, this is populated for all non en-us languages. If not populated, the default language 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, this is populated for all non en-us languages. If not populated, the default language 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, this is populated for all non en-us languages. If not populated, the default language 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, this is populated for all non en-us languages. If not populated, the default language 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, this is populated for all non en-us languages. If not populated, the default language 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 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.
Look up Existing KnowledgeBase Resource
Get an existing KnowledgeBase 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>, opts?: CustomResourceOptions): KnowledgeBase@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> KnowledgeBasefunc GetKnowledgeBase(ctx *Context, name string, id IDInput, state *KnowledgeBaseState, opts ...ResourceOption) (*KnowledgeBase, error)public static KnowledgeBase Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static KnowledgeBase get(String name, Output<String> id, CustomResourceOptions options)resources: existingKnowledgeBase: type: google-native:dialogflow/v2beta1:KnowledgeBase get: id: ${id}import {
to = google-native_dialogflow_v2beta1_knowledge_base.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state KnowledgeBaseState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi