PrivateLinkAssociation

class PrivateLinkAssociation : KotlinCustomResource

Manages a Resource Management Private Link Association.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.management.ManagementFunctions;
import com.pulumi.azure.management.inputs.GetGroupArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.management.PrivateLink;
import com.pulumi.azure.management.PrivateLinkArgs;
import com.pulumi.random.RandomUuid;
import com.pulumi.azure.management.PrivateLinkAssociation;
import com.pulumi.azure.management.PrivateLinkAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = CoreFunctions.getClientConfig();
final var exampleGetGroup = ManagementFunctions.getGroup(GetGroupArgs.builder()
.name(example.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.build());
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var examplePrivateLink = new PrivateLink("examplePrivateLink", PrivateLinkArgs.builder()
.name("example")
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleRandomUuid = new RandomUuid("exampleRandomUuid");
var examplePrivateLinkAssociation = new PrivateLinkAssociation("examplePrivateLinkAssociation", PrivateLinkAssociationArgs.builder()
.name(exampleRandomUuid.result())
.managementGroupId(exampleAzurermManagementGroup.id())
.resourceManagementPrivateLinkId(examplePrivateLink.id())
.publicNetworkAccessEnabled(true)
.build());
}
}

Import

An existing Private Link Association can be imported into Terraform using the resource id, e.g.

$ 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

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.

Link copied to clipboard
val name: Output<String>

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 ignore_changes attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.

Link copied to clipboard

Whether public network access is allowed. Changing this forces a new Private Link Association to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.

Link copied to clipboard
val tenantId: Output<String>

The Tenant ID.

Link copied to clipboard
val urn: Output<String>