azurermApiManagementProductTag
Manages an API Management Product tag
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.apiManagementTag.ApiManagementTag(this, "example", {
api_management_id: "${data.azurerm_api_management.example.id}",
name: "example-tag",
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example_1",
{
location: "West Europe",
name: "example-resources",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermResourceGroupExample.overrideLogicalId("example");
const azurermApiManagementExample = new azurerm.apiManagement.ApiManagement(
this,
"example_2",
{
location: azurermResourceGroupExample.location,
name: "example-apim",
publisher_email: "company@terraform.io",
publisher_name: "My Company",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "Developer_1",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermApiManagementExample.overrideLogicalId("example");
const azurermApiManagementProductExample =
new azurerm.apiManagementProduct.ApiManagementProduct(this, "example_3", {
api_management_name: azurermApiManagementExample.name,
approval_required: true,
display_name: "Test Product",
product_id: "test-product",
published: true,
resource_group_name: azurermResourceGroupExample.name,
subscription_required: true,
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermApiManagementProductExample.overrideLogicalId("example");
const azurermApiManagementProductTagExample =
new azurerm.apiManagementProductTag.ApiManagementProductTag(
this,
"example_4",
{
api_management_name: "${data.azurerm_api_management.example.name}",
api_management_product_id: azurermApiManagementProductExample.productId,
name: "${azurerm_api_management_tag.example1.name}",
resource_group_name: "${data.azurerm_resource_group.example.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.*/
azurermApiManagementProductTagExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
apiManagementName
- (Required) The name of the API Management Service. Changing this forces a new resource to be created. -
apiManagementProductId
- (Required) The name of the API Management product. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. -
name
- (Required) The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The ID of the API Management Product.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the API Management Product.update
- (Defaults to 30 minutes) Used when updating the API Management Product.read
- (Defaults to 5 minutes) Used when retrieving the API Management Product.delete
- (Defaults to 30 minutes) Used when deleting the API Management Product.
Import
API Management Products can be imported using the resourceId
, e.g.