permalink |
---|
/dialogflow_cx_webhook/ |
dialogflow_cx_webhook
represents the google_dialogflow_cx_webhook
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDisabled()
fn withDisplayName()
fn withEnableSpellCorrection()
fn withEnableStackdriverLogging()
fn withGenericWebService()
fn withGenericWebServiceMixin()
fn withParent()
fn withSecuritySettings()
fn withServiceDirectory()
fn withServiceDirectoryMixin()
fn withTimeout()
fn withTimeouts()
fn withTimeoutsMixin()
obj generic_web_service
obj service_directory
obj timeouts
new()
google.dialogflow_cx_webhook.new
injects a new google_dialogflow_cx_webhook
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_cx_webhook.new('some_id')
You can get the reference to the id
field of the created google.dialogflow_cx_webhook
using the reference:
$._ref.google_dialogflow_cx_webhook.some_id.get('id')
This is the same as directly entering "${ google_dialogflow_cx_webhook.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.disabled
(bool
): Indicates whether the webhook is disabled. Whennull
, thedisabled
field will be omitted from the resulting object.display_name
(string
): The human-readable name of the webhook, unique within the agent.enable_spell_correction
(bool
): Indicates if automatic spell correction is enabled in detect intent requests. Whennull
, theenable_spell_correction
field will be omitted from the resulting object.enable_stackdriver_logging
(bool
): Determines whether this agent should log conversation queries. Whennull
, theenable_stackdriver_logging
field will be omitted from the resulting object.parent
(string
): The agent to create a webhook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>. Whennull
, theparent
field will be omitted from the resulting object.security_settings
(string
): Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>. Whennull
, thesecurity_settings
field will be omitted from the resulting object.timeout
(string
): Webhook execution timeout. Whennull
, thetimeout
field will be omitted from the resulting object.generic_web_service
(list[obj]
): Configuration for a generic web service. Whennull
, thegeneric_web_service
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_cx_webhook.generic_web_service.new constructor.service_directory
(list[obj]
): Configuration for a Service Directory service. Whennull
, theservice_directory
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_cx_webhook.service_directory.new constructor.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_cx_webhook.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.dialogflow_cx_webhook.newAttrs
constructs a new object with attributes and blocks configured for the dialogflow_cx_webhook
Terraform resource.
Unlike google.dialogflow_cx_webhook.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:
disabled
(bool
): Indicates whether the webhook is disabled. Whennull
, thedisabled
field will be omitted from the resulting object.display_name
(string
): The human-readable name of the webhook, unique within the agent.enable_spell_correction
(bool
): Indicates if automatic spell correction is enabled in detect intent requests. Whennull
, theenable_spell_correction
field will be omitted from the resulting object.enable_stackdriver_logging
(bool
): Determines whether this agent should log conversation queries. Whennull
, theenable_stackdriver_logging
field will be omitted from the resulting object.parent
(string
): The agent to create a webhook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>. Whennull
, theparent
field will be omitted from the resulting object.security_settings
(string
): Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>. Whennull
, thesecurity_settings
field will be omitted from the resulting object.timeout
(string
): Webhook execution timeout. Whennull
, thetimeout
field will be omitted from the resulting object.generic_web_service
(list[obj]
): Configuration for a generic web service. Whennull
, thegeneric_web_service
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_cx_webhook.generic_web_service.new constructor.service_directory
(list[obj]
): Configuration for a Service Directory service. Whennull
, theservice_directory
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_cx_webhook.service_directory.new constructor.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_cx_webhook.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
dialogflow_cx_webhook
resource into the root Terraform configuration.
withDisabled()
google.bool.withDisabled
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the disabled field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thedisabled
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.
withEnableSpellCorrection()
google.bool.withEnableSpellCorrection
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_spell_correction field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_spell_correction
field.
withEnableStackdriverLogging()
google.bool.withEnableStackdriverLogging
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_stackdriver_logging field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_stackdriver_logging
field.
withGenericWebService()
google.list[obj].withGenericWebService
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the generic_web_service field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withGenericWebServiceMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thegeneric_web_service
field.
withGenericWebServiceMixin()
google.list[obj].withGenericWebServiceMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the generic_web_service field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withGenericWebService
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thegeneric_web_service
field.
withParent()
google.string.withParent
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the parent field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theparent
field.
withSecuritySettings()
google.string.withSecuritySettings
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the security_settings field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesecurity_settings
field.
withServiceDirectory()
google.list[obj].withServiceDirectory
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the service_directory field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withServiceDirectoryMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theservice_directory
field.
withServiceDirectoryMixin()
google.list[obj].withServiceDirectoryMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the service_directory field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withServiceDirectory
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theservice_directory
field.
withTimeout()
google.string.withTimeout
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the timeout field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetimeout
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.
new()
google.dialogflow_cx_webhook.generic_web_service.new
constructs a new object with attributes and blocks configured for the generic_web_service
Terraform sub block.
Args:
allowed_ca_certs
(list
): Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. Whennull
, theallowed_ca_certs
field will be omitted from the resulting object.request_headers
(obj
): The HTTP request headers to send together with webhook requests. Whennull
, therequest_headers
field will be omitted from the resulting object.uri
(string
): Whether to use speech adaptation for speech recognition.
Returns:
- An attribute object that represents the
generic_web_service
sub block.
new()
google.dialogflow_cx_webhook.service_directory.new
constructs a new object with attributes and blocks configured for the service_directory
Terraform sub block.
Args:
service
(string
): The name of Service Directory service.generic_web_service
(list[obj]
): The name of Service Directory service. Whennull
, thegeneric_web_service
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_cx_webhook.service_directory.generic_web_service.new constructor.
Returns:
- An attribute object that represents the
service_directory
sub block.
new()
google.dialogflow_cx_webhook.service_directory.generic_web_service.new
constructs a new object with attributes and blocks configured for the generic_web_service
Terraform sub block.
Args:
allowed_ca_certs
(list
): Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. Whennull
, theallowed_ca_certs
field will be omitted from the resulting object.request_headers
(obj
): The HTTP request headers to send together with webhook requests. Whennull
, therequest_headers
field will be omitted from the resulting object.uri
(string
): Whether to use speech adaptation for speech recognition.
Returns:
- An attribute object that represents the
generic_web_service
sub block.
new()
google.dialogflow_cx_webhook.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.