permalink |
---|
/dialogflow_intent/ |
dialogflow_intent
represents the google_dialogflow_intent
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAction()
fn withDefaultResponsePlatforms()
fn withDisplayName()
fn withEvents()
fn withInputContextNames()
fn withIsFallback()
fn withMlDisabled()
fn withParentFollowupIntentName()
fn withPriority()
fn withProject()
fn withResetContexts()
fn withTimeouts()
fn withTimeoutsMixin()
fn withWebhookState()
obj timeouts
new()
google.dialogflow_intent.new
injects a new google_dialogflow_intent
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.dialogflow_intent.new('some_id')
You can get the reference to the id
field of the created google.dialogflow_intent
using the reference:
$._ref.google_dialogflow_intent.some_id.get('id')
This is the same as directly entering "${ google_dialogflow_intent.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.action
(string
): The name of the action associated with the intent. Note: The action name must not contain whitespaces. Whennull
, theaction
field will be omitted from the resulting object.default_response_platforms
(list
): The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Possible values: ["FACEBOOK", "SLACK", "TELEGRAM", "KIK", "SKYPE", "LINE", "VIBER", "ACTIONS_ON_GOOGLE", "GOOGLE_HANGOUTS"] Whennull
, thedefault_response_platforms
field will be omitted from the resulting object.display_name
(string
): The name of this intent to be displayed on the console.events
(list
): The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details. Whennull
, theevents
field will be omitted from the resulting object.input_context_names
(list
): The list of context names required for this intent to be triggered. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>. Whennull
, theinput_context_names
field will be omitted from the resulting object.is_fallback
(bool
): Indicates whether this is a fallback intent. Whennull
, theis_fallback
field will be omitted from the resulting object.ml_disabled
(bool
): Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off. Whennull
, theml_disabled
field will be omitted from the resulting object.parent_followup_intent_name
(string
): The unique identifier of the parent intent in the chain of followup intents. Format: projects/<Project ID>/agent/intents/<Intent ID>. Whennull
, theparent_followup_intent_name
field will be omitted from the resulting object.priority
(number
): The priority of this intent. Higher numbers represent higher priorities.- If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
- If the supplied value is negative, the intent is ignored in runtime detect intent requests. When
null
, thepriority
field will be omitted from the resulting object. project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.reset_contexts
(bool
): Indicates whether to delete all contexts in the current session when this intent is matched. Whennull
, thereset_contexts
field will be omitted from the resulting object.webhook_state
(string
): Indicates whether webhooks are enabled for the intent.
- WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
- WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot
filling prompt is forwarded to the webhook. Possible values: ["WEBHOOK_STATE_ENABLED", "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING"] When
null
, thewebhook_state
field will be omitted from the resulting object.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dialogflow_intent.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.dialogflow_intent.newAttrs
constructs a new object with attributes and blocks configured for the dialogflow_intent
Terraform resource.
Unlike google.dialogflow_intent.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
action
(string
): The name of the action associated with the intent. Note: The action name must not contain whitespaces. Whennull
, theaction
field will be omitted from the resulting object.default_response_platforms
(list
): The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Possible values: ["FACEBOOK", "SLACK", "TELEGRAM", "KIK", "SKYPE", "LINE", "VIBER", "ACTIONS_ON_GOOGLE", "GOOGLE_HANGOUTS"] Whennull
, thedefault_response_platforms
field will be omitted from the resulting object.display_name
(string
): The name of this intent to be displayed on the console.events
(list
): The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details. Whennull
, theevents
field will be omitted from the resulting object.input_context_names
(list
): The list of context names required for this intent to be triggered. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>. Whennull
, theinput_context_names
field will be omitted from the resulting object.is_fallback
(bool
): Indicates whether this is a fallback intent. Whennull
, theis_fallback
field will be omitted from the resulting object.ml_disabled
(bool
): Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off. Whennull
, theml_disabled
field will be omitted from the resulting object.parent_followup_intent_name
(string
): The unique identifier of the parent intent in the chain of followup intents. Format: projects/<Project ID>/agent/intents/<Intent ID>. Whennull
, theparent_followup_intent_name
field will be omitted from the resulting object.priority
(number
): The priority of this intent. Higher numbers represent higher priorities.- If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
- If the supplied value is negative, the intent is ignored in runtime detect intent requests. When
null
, thepriority
field will be omitted from the resulting object. project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.reset_contexts
(bool
): Indicates whether to delete all contexts in the current session when this intent is matched. Whennull
, thereset_contexts
field will be omitted from the resulting object.webhook_state
(string
): Indicates whether webhooks are enabled for the intent.
- WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
- WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot
filling prompt is forwarded to the webhook. Possible values: ["WEBHOOK_STATE_ENABLED", "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING"] When
null
, thewebhook_state
field will be omitted from the resulting object.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.dialogflow_intent.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
dialogflow_intent
resource into the root Terraform configuration.
withAction()
google.string.withAction
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the action field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theaction
field.
withDefaultResponsePlatforms()
google.list.withDefaultResponsePlatforms
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the default_response_platforms field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for thedefault_response_platforms
field.
withDisplayName()
google.string.withDisplayName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the display_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedisplay_name
field.
withEvents()
google.list.withEvents
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the events field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theevents
field.
withInputContextNames()
google.list.withInputContextNames
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the input_context_names field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theinput_context_names
field.
withIsFallback()
google.bool.withIsFallback
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the is_fallback field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theis_fallback
field.
withMlDisabled()
google.bool.withMlDisabled
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the ml_disabled field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theml_disabled
field.
withParentFollowupIntentName()
google.string.withParentFollowupIntentName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the parent_followup_intent_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theparent_followup_intent_name
field.
withPriority()
google.number.withPriority
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the priority field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for thepriority
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withResetContexts()
google.bool.withResetContexts
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the reset_contexts field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thereset_contexts
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withWebhookState()
google.string.withWebhookState
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the webhook_state field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thewebhook_state
field.
new()
google.dialogflow_intent.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.