azurermBotChannelDirectLineSpeech
Manages a Direct Line Speech integration for a Bot Channel
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const dataAzurermClientConfigCurrent =
new azurerm.dataAzurermClientConfig.DataAzurermClientConfig(
this,
"current",
{}
);
const azurermBotChannelsRegistrationExample =
new azurerm.botChannelsRegistration.BotChannelsRegistration(
this,
"example_2",
{
location: "global",
microsoft_app_id: dataAzurermClientConfigCurrent.clientId,
name: "example-bcr",
resource_group_name: azurermResourceGroupExample.name,
sku: "F0",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermBotChannelsRegistrationExample.overrideLogicalId("example");
const azurermCognitiveAccountExample =
new azurerm.cognitiveAccount.CognitiveAccount(this, "example_3", {
kind: "SpeechServices",
location: azurermResourceGroupExample.location,
name: "example-cogacct",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "S0",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermCognitiveAccountExample.overrideLogicalId("example");
const azurermBotChannelDirectLineSpeechExample =
new azurerm.botChannelDirectLineSpeech.BotChannelDirectLineSpeech(
this,
"example_4",
{
bot_name: azurermBotChannelsRegistrationExample.name,
cognitive_service_access_key:
azurermCognitiveAccountExample.primaryAccessKey,
cognitive_service_location: azurermCognitiveAccountExample.location,
location: azurermBotChannelsRegistrationExample.location,
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermBotChannelDirectLineSpeechExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
resourceGroupName
- (Required) The name of the resource group where the Direct Line Speech Channel should be created. Changing this forces a new resource to be created. -
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. -
botName
- (Required) The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created. -
cognitiveServiceAccessKey
- (Required) The access key to access the Cognitive Service. -
cognitiveServiceLocation
- (Required) Specifies the supported Azure location where the Cognitive Service resource exists. -
customSpeechModelId
- (Optional) The custom speech model id for the Direct Line Speech Channel. -
customVoiceDeploymentId
- (Optional) The custom voice deployment id for the Direct Line Speech Channel.
Attributes Reference
The following attributes are exported:
id
- The ID of the Direct Line Speech Channel.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Direct Line Speech Channel.update
- (Defaults to 30 minutes) Used when updating the Direct Line Speech Channel.read
- (Defaults to 5 minutes) Used when retrieving the Direct Line Speech Channel.delete
- (Defaults to 30 minutes) Used when deleting the Direct Line Speech Channel.
Import
Direct Line Speech Channels can be imported using the resourceId
, e.g.