import * as pulumi from "@pulumi/pulumi"; /** * Manages a Resource Management Private Link Association. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as random from "@pulumi/random"; * * const example = azure.core.getClientConfig({}); * const exampleGetGroup = example.then(example => azure.management.getGroup({ * name: example.tenantId, * })); * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example", * location: "West Europe", * }); * const examplePrivateLink = new azure.management.PrivateLink("example", { * name: "example", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * }); * const exampleUuid = new random.index.Uuid("example", {}); * const examplePrivateLinkAssociation = new azure.management.PrivateLinkAssociation("example", { * name: exampleUuid.result, * managementGroupId: exampleAzurermManagementGroup.id, * resourceManagementPrivateLinkId: examplePrivateLink.id, * publicNetworkAccessEnabled: true, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Management` - 2020-05-01 * * ## Import * * An existing Private Link Association can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:management/privateLinkAssociation:PrivateLinkAssociation example /providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/privateLinkAssociations/00000000-0000-0000-0000-000000000000 * ``` */ export declare class PrivateLinkAssociation extends pulumi.CustomResource { /** * Get an existing PrivateLinkAssociation 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?: PrivateLinkAssociationState, opts?: pulumi.CustomResourceOptions): PrivateLinkAssociation; /** * Returns true if the given object is an instance of PrivateLinkAssociation. 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 PrivateLinkAssociation; /** * Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created. * * > **Note:** For now, `managementGroupId` must be the ID of [Root Management Group](https://learn.microsoft.com/en-us/azure/governance/management-groups/overview#root-management-group-for-each-directory). */ readonly managementGroupId: pulumi.Output; /** * Specifies the name of this Private Link Association, which should be a UUID. If `name` is not provided, a UUID will be generated, you should use the `ignoreChanges` attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created. */ readonly name: pulumi.Output; /** * Whether public network access is allowed. Changing this forces a new Private Link Association to be created. */ readonly publicNetworkAccessEnabled: pulumi.Output; /** * The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created. */ readonly resourceManagementPrivateLinkId: pulumi.Output; /** * The Tenant ID. */ readonly tenantId: pulumi.Output; /** * Create a PrivateLinkAssociation 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: PrivateLinkAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PrivateLinkAssociation resources. */ export interface PrivateLinkAssociationState { /** * Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created. * * > **Note:** For now, `managementGroupId` must be the ID of [Root Management Group](https://learn.microsoft.com/en-us/azure/governance/management-groups/overview#root-management-group-for-each-directory). */ managementGroupId?: pulumi.Input; /** * Specifies the name of this Private Link Association, which should be a UUID. If `name` is not provided, a UUID will be generated, you should use the `ignoreChanges` attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created. */ name?: pulumi.Input; /** * Whether public network access is allowed. Changing this forces a new Private Link Association to be created. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created. */ resourceManagementPrivateLinkId?: pulumi.Input; /** * The Tenant ID. */ tenantId?: pulumi.Input; } /** * The set of arguments for constructing a PrivateLinkAssociation resource. */ export interface PrivateLinkAssociationArgs { /** * Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created. * * > **Note:** For now, `managementGroupId` must be the ID of [Root Management Group](https://learn.microsoft.com/en-us/azure/governance/management-groups/overview#root-management-group-for-each-directory). */ managementGroupId: pulumi.Input; /** * Specifies the name of this Private Link Association, which should be a UUID. If `name` is not provided, a UUID will be generated, you should use the `ignoreChanges` attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created. */ name?: pulumi.Input; /** * Whether public network access is allowed. Changing this forces a new Private Link Association to be created. */ publicNetworkAccessEnabled: pulumi.Input; /** * The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created. */ resourceManagementPrivateLinkId: pulumi.Input; }