UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

252 lines (251 loc) 13 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DialogflowAgentConfig extends cdktf.TerraformMetaArguments { /** * API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query * different service endpoints for different API versions. However, bots connectors and webhook calls will follow * the specified API version. * * API_VERSION_V1: Legacy V1 API. * * API_VERSION_V2: V2 API. * * API_VERSION_V2_BETA_1: V2beta1 API. Possible values: ["API_VERSION_V1", "API_VERSION_V2", "API_VERSION_V2_BETA_1"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#api_version DialogflowAgent#api_version} */ readonly apiVersion?: string; /** * The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered * into this field, the Dialogflow will save the image in the backend. The address of the backend image returned * from the API will be shown in the [avatarUriBackend] field. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#avatar_uri DialogflowAgent#avatar_uri} */ readonly avatarUri?: string; /** * To filter out false positive results and still get variety in matched natural language inputs for your agent, * you can tune the machine learning classification threshold. If the returned score value is less than the threshold * value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be * triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the * default of 0.3 is used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#classification_threshold DialogflowAgent#classification_threshold} */ readonly classificationThreshold?: number; /** * The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. This field cannot be updated after creation. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#default_language_code DialogflowAgent#default_language_code} */ readonly defaultLanguageCode: string; /** * The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#description DialogflowAgent#description} */ readonly description?: string; /** * The name of this agent. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#display_name DialogflowAgent#display_name} */ readonly displayName: string; /** * Determines whether this agent should log conversation queries. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#enable_logging DialogflowAgent#enable_logging} */ readonly enableLogging?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#id DialogflowAgent#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Determines how intents are detected from user queries. * * MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates * syntax and composite entities. * * MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones * using @sys.any or very large developer entities. Possible values: ["MATCH_MODE_HYBRID", "MATCH_MODE_ML_ONLY"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#match_mode DialogflowAgent#match_mode} */ readonly matchMode?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#project DialogflowAgent#project} */ readonly project?: string; /** * The list of all languages supported by this agent (except for the defaultLanguageCode). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#supported_language_codes DialogflowAgent#supported_language_codes} */ readonly supportedLanguageCodes?: string[]; /** * The agent tier. If not specified, TIER_STANDARD is assumed. * * TIER_STANDARD: Standard tier. * * TIER_ENTERPRISE: Enterprise tier (Essentials). * * TIER_ENTERPRISE_PLUS: Enterprise tier (Plus). * NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between * the Terraform state and Dialogflow if the agent tier is changed outside of Terraform. Possible values: ["TIER_STANDARD", "TIER_ENTERPRISE", "TIER_ENTERPRISE_PLUS"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#tier DialogflowAgent#tier} */ readonly tier?: string; /** * The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, * Europe/Paris. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#time_zone DialogflowAgent#time_zone} */ readonly timeZone: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#timeouts DialogflowAgent#timeouts} */ readonly timeouts?: DialogflowAgentTimeouts; } export interface DialogflowAgentTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#create DialogflowAgent#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#delete DialogflowAgent#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#update DialogflowAgent#update} */ readonly update?: string; } export declare function dialogflowAgentTimeoutsToTerraform(struct?: DialogflowAgentTimeouts | cdktf.IResolvable): any; export declare function dialogflowAgentTimeoutsToHclTerraform(struct?: DialogflowAgentTimeouts | cdktf.IResolvable): any; export declare class DialogflowAgentTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): DialogflowAgentTimeouts | cdktf.IResolvable | undefined; set internalValue(value: DialogflowAgentTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string | undefined; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string | undefined; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string | undefined; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent google_dialogflow_agent} */ export declare class DialogflowAgent extends cdktf.TerraformResource { static readonly tfResourceType = "google_dialogflow_agent"; /** * Generates CDKTF code for importing a DialogflowAgent resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the DialogflowAgent to import * @param importFromId The id of the existing DialogflowAgent that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DialogflowAgent to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource; /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/dialogflow_agent google_dialogflow_agent} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DialogflowAgentConfig */ constructor(scope: Construct, id: string, config: DialogflowAgentConfig); private _apiVersion?; get apiVersion(): string; set apiVersion(value: string); resetApiVersion(): void; get apiVersionInput(): string | undefined; private _avatarUri?; get avatarUri(): string; set avatarUri(value: string); resetAvatarUri(): void; get avatarUriInput(): string | undefined; get avatarUriBackend(): string; private _classificationThreshold?; get classificationThreshold(): number; set classificationThreshold(value: number); resetClassificationThreshold(): void; get classificationThresholdInput(): number | undefined; private _defaultLanguageCode?; get defaultLanguageCode(): string; set defaultLanguageCode(value: string); get defaultLanguageCodeInput(): string | undefined; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string | undefined; private _displayName?; get displayName(): string; set displayName(value: string); get displayNameInput(): string | undefined; private _enableLogging?; get enableLogging(): boolean | cdktf.IResolvable; set enableLogging(value: boolean | cdktf.IResolvable); resetEnableLogging(): void; get enableLoggingInput(): boolean | cdktf.IResolvable | undefined; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _matchMode?; get matchMode(): string; set matchMode(value: string); resetMatchMode(): void; get matchModeInput(): string | undefined; private _project?; get project(): string; set project(value: string); resetProject(): void; get projectInput(): string | undefined; private _supportedLanguageCodes?; get supportedLanguageCodes(): string[]; set supportedLanguageCodes(value: string[]); resetSupportedLanguageCodes(): void; get supportedLanguageCodesInput(): string[] | undefined; private _tier?; get tier(): string; set tier(value: string); resetTier(): void; get tierInput(): string | undefined; private _timeZone?; get timeZone(): string; set timeZone(value: string); get timeZoneInput(): string | undefined; private _timeouts; get timeouts(): DialogflowAgentTimeoutsOutputReference; putTimeouts(value: DialogflowAgentTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | DialogflowAgentTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }