azurermDigitalTwinsEndpointServicebus
Manages a Digital Twins Service Bus Endpoint.
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.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
features: [{}],
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example_resources",
}
);
const azurermServicebusNamespaceExample =
new azurerm.servicebusNamespace.ServicebusNamespace(this, "example_2", {
location: azurermResourceGroupExample.location,
name: "exampleservicebusnamespace",
resource_group_name: azurermResourceGroupExample.name,
sku: "Standard",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermServicebusNamespaceExample.overrideLogicalId("example");
const azurermServicebusTopicExample =
new azurerm.servicebusTopic.ServicebusTopic(this, "example_3", {
name: "exampleservicebustopic",
namespace_id: azurermServicebusNamespaceExample.id,
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermServicebusTopicExample.overrideLogicalId("example");
const azurermServicebusTopicAuthorizationRuleExample =
new azurerm.servicebusTopicAuthorizationRule.ServicebusTopicAuthorizationRule(
this,
"example_4",
{
listen: false,
manage: false,
name: "example-rule",
send: true,
topic_id: azurermServicebusTopicExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermServicebusTopicAuthorizationRuleExample.overrideLogicalId("example");
const azurermDigitalTwinsInstanceExample =
new azurerm.digitalTwinsInstance.DigitalTwinsInstance(this, "example_5", {
location: azurermResourceGroupExample.location,
name: "example-DT",
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.*/
azurermDigitalTwinsInstanceExample.overrideLogicalId("example");
const azurermDigitalTwinsEndpointServicebusExample =
new azurerm.digitalTwinsEndpointServicebus.DigitalTwinsEndpointServicebus(
this,
"example_6",
{
digital_twins_id: azurermDigitalTwinsInstanceExample.id,
name: "example-EndpointSB",
servicebus_primary_connection_string:
azurermServicebusTopicAuthorizationRuleExample.primaryConnectionString,
servicebus_secondary_connection_string:
azurermServicebusTopicAuthorizationRuleExample.secondaryConnectionString,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermDigitalTwinsEndpointServicebusExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. -
digitalTwinsId
- (Required) The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. -
servicebusPrimaryConnectionString
- (Required) The primary connection string of the Service Bus Topic Authorization Rule with a minimum ofsend
permission. . -
servicebusSecondaryConnectionString
- (Required) The secondary connection string of the Service Bus Topic Authorization Rule with a minimum ofsend
permission. -
deadLetterStorageSecret
- (Optional) The storage secret of the dead-lettering, whose format ishttps://<storageAccountname>BlobCoreWindowsNet/<containerName>?<sasToken>
. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Digital Twins Service Bus Endpoint.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Digital Twins Servicebus Endpoint.read
- (Defaults to 5 minutes) Used when retrieving the Digital Twins Servicebus Endpoint.update
- (Defaults to 30 minutes) Used when updating the Digital Twins Servicebus Endpoint.delete
- (Defaults to 30 minutes) Used when deleting the Digital Twins Servicebus Endpoint.
Import
Digital Twins Service Bus Endpoints can be imported using the resourceId
, e.g.