import * as pulumi from "@pulumi/pulumi"; /** * Manages an API Management Product tag * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleService = new azure.apimanagement.Service("example", { * name: "example-apim", * location: example.location, * resourceGroupName: example.name, * publisherName: "My Company", * publisherEmail: "company@terraform.io", * skuName: "Developer_1", * }); * const exampleProduct = new azure.apimanagement.Product("example", { * productId: "test-product", * apiManagementName: exampleService.name, * resourceGroupName: example.name, * displayName: "Test Product", * subscriptionRequired: true, * approvalRequired: true, * published: true, * }); * const exampleTag = new azure.apimanagement.Tag("example", { * apiManagementId: exampleService.id, * name: "example-tag", * }); * const exampleProductTag = new azure.apimanagement.ProductTag("example", { * apiManagementProductId: exampleProduct.productId, * apiManagementName: exampleService.name, * resourceGroupName: example.name, * name: exampleTag.name, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management Products can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/productTag:ProductTag example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/products/myproduct/tags/mytag * ``` */ export declare class ProductTag extends pulumi.CustomResource { /** * Get an existing ProductTag resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ProductTagState, opts?: pulumi.CustomResourceOptions): ProductTag; /** * Returns true if the given object is an instance of ProductTag. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ProductTag; /** * The name of the API Management Service. Changing this forces a new resource to be created. */ readonly apiManagementName: pulumi.Output; /** * The name of the API Management product. Changing this forces a new resource to be created. */ readonly apiManagementProductId: pulumi.Output; /** * The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Create a ProductTag resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ProductTagArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProductTag resources. */ export interface ProductTagState { /** * The name of the API Management Service. Changing this forces a new resource to be created. */ apiManagementName?: pulumi.Input; /** * The name of the API Management product. Changing this forces a new resource to be created. */ apiManagementProductId?: pulumi.Input; /** * The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created. */ name?: pulumi.Input; /** * The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; } /** * The set of arguments for constructing a ProductTag resource. */ export interface ProductTagArgs { /** * The name of the API Management Service. Changing this forces a new resource to be created. */ apiManagementName: pulumi.Input; /** * The name of the API Management product. Changing this forces a new resource to be created. */ apiManagementProductId: pulumi.Input; /** * The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created. */ name?: pulumi.Input; /** * The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; }