import * as pulumi from "@pulumi/pulumi"; /** * Manages a API Management 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: "Consumption_0", * }); * const exampleTag = new azure.apimanagement.Tag("example", { * apiManagementId: exampleService.id, * name: "example-Tag", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management Tags can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/tag:Tag example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/tags/tag1 * ``` */ export declare class Tag extends pulumi.CustomResource { /** * Get an existing Tag 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?: TagState, opts?: pulumi.CustomResourceOptions): Tag; /** * Returns true if the given object is an instance of Tag. 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 Tag; /** * The ID of the API Management. Changing this forces a new API Management Tag to be created. */ readonly apiManagementId: pulumi.Output; /** * The display name of the API Management Tag. Defaults to the `name`. */ readonly displayName: pulumi.Output; /** * The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created. The name must be unique in the API Management Service. */ readonly name: pulumi.Output; /** * Create a Tag 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: TagArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Tag resources. */ export interface TagState { /** * The ID of the API Management. Changing this forces a new API Management Tag to be created. */ apiManagementId?: pulumi.Input; /** * The display name of the API Management Tag. Defaults to the `name`. */ displayName?: pulumi.Input; /** * The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created. The name must be unique in the API Management Service. */ name?: pulumi.Input; } /** * The set of arguments for constructing a Tag resource. */ export interface TagArgs { /** * The ID of the API Management. Changing this forces a new API Management Tag to be created. */ apiManagementId: pulumi.Input; /** * The display name of the API Management Tag. Defaults to the `name`. */ displayName?: pulumi.Input; /** * The name which should be used for this API Management Tag. Changing this forces a new API Management Tag to be created. The name must be unique in the API Management Service. */ name?: pulumi.Input; }