PrivateLinkAssociationArgs

data class PrivateLinkAssociationArgs(val managementGroupId: Output<String>? = null, val name: Output<String>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val resourceManagementPrivateLinkId: Output<String>? = null) : ConvertibleToJava<PrivateLinkAssociationArgs>

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

Constructors

Link copied to clipboard
fun PrivateLinkAssociationArgs(managementGroupId: Output<String>? = null, name: Output<String>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, resourceManagementPrivateLinkId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PrivateLinkAssociationArgs

Properties

Link copied to clipboard
val managementGroupId: Output<String>? = null

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>? = null

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
val publicNetworkAccessEnabled: Output<Boolean>? = null

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

Link copied to clipboard

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