import * as pulumi from "@pulumi/pulumi"; /** * Manages an API Management Product Assignment to a Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.apimanagement.getService({ * name: "example-api", * resourceGroupName: "example-resources", * }); * const exampleGetProduct = Promise.all([example, example]).then(([example, example1]) => azure.apimanagement.getProduct({ * productId: "my-product", * apiManagementName: example.name, * resourceGroupName: example1.resourceGroupName, * })); * const exampleGetGroup = Promise.all([example, example]).then(([example, example1]) => azure.apimanagement.getGroup({ * name: "my-group", * apiManagementName: example.name, * resourceGroupName: example1.resourceGroupName, * })); * const exampleProductGroup = new azure.apimanagement.ProductGroup("example", { * productId: exampleGetProduct.then(exampleGetProduct => exampleGetProduct.productId), * groupName: exampleGetGroup.then(exampleGetGroup => exampleGetGroup.name), * apiManagementName: example.then(example => example.name), * resourceGroupName: example.then(example => example.resourceGroupName), * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management Product Groups can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/productGroup:ProductGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/products/exampleId/groups/groupId * ``` */ export declare class ProductGroup extends pulumi.CustomResource { /** * Get an existing ProductGroup 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?: ProductGroupState, opts?: pulumi.CustomResourceOptions): ProductGroup; /** * Returns true if the given object is an instance of ProductGroup. 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 ProductGroup; /** * 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 Group within the API Management Service. Changing this forces a new resource to be created. */ readonly groupName: pulumi.Output; /** * The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created. */ readonly productId: pulumi.Output; /** * The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Create a ProductGroup 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: ProductGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProductGroup resources. */ export interface ProductGroupState { /** * 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 Group within the API Management Service. Changing this forces a new resource to be created. */ groupName?: pulumi.Input; /** * The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created. */ productId?: pulumi.Input; /** * The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; } /** * The set of arguments for constructing a ProductGroup resource. */ export interface ProductGroupArgs { /** * 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 Group within the API Management Service. Changing this forces a new resource to be created. */ groupName: pulumi.Input; /** * The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created. */ productId: pulumi.Input; /** * The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; }