1. Packages
  2. Azure Native
  3. API Docs
  4. authorization
  5. PrivateLinkAssociation
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.authorization.PrivateLinkAssociation

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    Azure REST API version: 2020-05-01. Prior API version in Azure Native 1.x: 2020-05-01.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var privateLinkAssociation = new AzureNative.Authorization.PrivateLinkAssociation("privateLinkAssociation", new()
        {
            GroupId = "my-management-group",
            PlaId = "00000000-0000-0000-0000-000000000000",
            Properties = new AzureNative.Authorization.Inputs.PrivateLinkAssociationPropertiesArgs
            {
                PrivateLink = "00000000-0000-0000-0000-000000000000",
                PublicNetworkAccess = AzureNative.Authorization.PublicNetworkAccessOptions.Enabled,
            },
        });
    
    });
    
    package main
    
    import (
    	authorization "github.com/pulumi/pulumi-azure-native-sdk/authorization/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := authorization.NewPrivateLinkAssociation(ctx, "privateLinkAssociation", &authorization.PrivateLinkAssociationArgs{
    			GroupId: pulumi.String("my-management-group"),
    			PlaId:   pulumi.String("00000000-0000-0000-0000-000000000000"),
    			Properties: &authorization.PrivateLinkAssociationPropertiesArgs{
    				PrivateLink:         pulumi.String("00000000-0000-0000-0000-000000000000"),
    				PublicNetworkAccess: pulumi.String(authorization.PublicNetworkAccessOptionsEnabled),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.authorization.PrivateLinkAssociation;
    import com.pulumi.azurenative.authorization.PrivateLinkAssociationArgs;
    import com.pulumi.azurenative.authorization.inputs.PrivateLinkAssociationPropertiesArgs;
    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) {
            var privateLinkAssociation = new PrivateLinkAssociation("privateLinkAssociation", PrivateLinkAssociationArgs.builder()
                .groupId("my-management-group")
                .plaId("00000000-0000-0000-0000-000000000000")
                .properties(PrivateLinkAssociationPropertiesArgs.builder()
                    .privateLink("00000000-0000-0000-0000-000000000000")
                    .publicNetworkAccess("Enabled")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    private_link_association = azure_native.authorization.PrivateLinkAssociation("privateLinkAssociation",
        group_id="my-management-group",
        pla_id="00000000-0000-0000-0000-000000000000",
        properties={
            "private_link": "00000000-0000-0000-0000-000000000000",
            "public_network_access": azure_native.authorization.PublicNetworkAccessOptions.ENABLED,
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const privateLinkAssociation = new azure_native.authorization.PrivateLinkAssociation("privateLinkAssociation", {
        groupId: "my-management-group",
        plaId: "00000000-0000-0000-0000-000000000000",
        properties: {
            privateLink: "00000000-0000-0000-0000-000000000000",
            publicNetworkAccess: azure_native.authorization.PublicNetworkAccessOptions.Enabled,
        },
    });
    
    resources:
      privateLinkAssociation:
        type: azure-native:authorization:PrivateLinkAssociation
        properties:
          groupId: my-management-group
          plaId: 00000000-0000-0000-0000-000000000000
          properties:
            privateLink: 00000000-0000-0000-0000-000000000000
            publicNetworkAccess: Enabled
    

    Create PrivateLinkAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PrivateLinkAssociation(name: string, args: PrivateLinkAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateLinkAssociation(resource_name: str,
                               args: PrivateLinkAssociationArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateLinkAssociation(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               group_id: Optional[str] = None,
                               pla_id: Optional[str] = None,
                               properties: Optional[PrivateLinkAssociationPropertiesArgs] = None)
    func NewPrivateLinkAssociation(ctx *Context, name string, args PrivateLinkAssociationArgs, opts ...ResourceOption) (*PrivateLinkAssociation, error)
    public PrivateLinkAssociation(string name, PrivateLinkAssociationArgs args, CustomResourceOptions? opts = null)
    public PrivateLinkAssociation(String name, PrivateLinkAssociationArgs args)
    public PrivateLinkAssociation(String name, PrivateLinkAssociationArgs args, CustomResourceOptions options)
    
    type: azure-native:authorization:PrivateLinkAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PrivateLinkAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PrivateLinkAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PrivateLinkAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateLinkAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateLinkAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var privateLinkAssociationResource = new AzureNative.Authorization.PrivateLinkAssociation("privateLinkAssociationResource", new()
    {
        GroupId = "string",
        PlaId = "string",
        Properties = new AzureNative.Authorization.Inputs.PrivateLinkAssociationPropertiesArgs
        {
            PrivateLink = "string",
            PublicNetworkAccess = "string",
        },
    });
    
    example, err := authorization.NewPrivateLinkAssociation(ctx, "privateLinkAssociationResource", &authorization.PrivateLinkAssociationArgs{
    	GroupId: pulumi.String("string"),
    	PlaId:   pulumi.String("string"),
    	Properties: &authorization.PrivateLinkAssociationPropertiesArgs{
    		PrivateLink:         pulumi.String("string"),
    		PublicNetworkAccess: pulumi.String("string"),
    	},
    })
    
    var privateLinkAssociationResource = new PrivateLinkAssociation("privateLinkAssociationResource", PrivateLinkAssociationArgs.builder()
        .groupId("string")
        .plaId("string")
        .properties(PrivateLinkAssociationPropertiesArgs.builder()
            .privateLink("string")
            .publicNetworkAccess("string")
            .build())
        .build());
    
    private_link_association_resource = azure_native.authorization.PrivateLinkAssociation("privateLinkAssociationResource",
        group_id="string",
        pla_id="string",
        properties={
            "privateLink": "string",
            "publicNetworkAccess": "string",
        })
    
    const privateLinkAssociationResource = new azure_native.authorization.PrivateLinkAssociation("privateLinkAssociationResource", {
        groupId: "string",
        plaId: "string",
        properties: {
            privateLink: "string",
            publicNetworkAccess: "string",
        },
    });
    
    type: azure-native:authorization:PrivateLinkAssociation
    properties:
        groupId: string
        plaId: string
        properties:
            privateLink: string
            publicNetworkAccess: string
    

    PrivateLinkAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PrivateLinkAssociation resource accepts the following input properties:

    GroupId string
    The management group ID.
    PlaId string
    The ID of the PLA
    Properties Pulumi.AzureNative.Authorization.Inputs.PrivateLinkAssociationProperties
    The properties of the PrivateLinkAssociation.
    GroupId string
    The management group ID.
    PlaId string
    The ID of the PLA
    Properties PrivateLinkAssociationPropertiesArgs
    The properties of the PrivateLinkAssociation.
    groupId String
    The management group ID.
    plaId String
    The ID of the PLA
    properties PrivateLinkAssociationProperties
    The properties of the PrivateLinkAssociation.
    groupId string
    The management group ID.
    plaId string
    The ID of the PLA
    properties PrivateLinkAssociationProperties
    The properties of the PrivateLinkAssociation.
    group_id str
    The management group ID.
    pla_id str
    The ID of the PLA
    properties PrivateLinkAssociationPropertiesArgs
    The properties of the PrivateLinkAssociation.
    groupId String
    The management group ID.
    plaId String
    The ID of the PLA
    properties Property Map
    The properties of the PrivateLinkAssociation.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivateLinkAssociation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The pla name.
    Type string
    The operation type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The pla name.
    Type string
    The operation type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The pla name.
    type String
    The operation type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The pla name.
    type string
    The operation type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The pla name.
    type str
    The operation type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The pla name.
    type String
    The operation type.

    Supporting Types

    PrivateLinkAssociationProperties, PrivateLinkAssociationPropertiesArgs

    PrivateLink string
    The rmpl Resource ID.
    PublicNetworkAccess string | PublicNetworkAccessOptions
    privateLink String
    The rmpl Resource ID.
    publicNetworkAccess String | PublicNetworkAccessOptions
    privateLink string
    The rmpl Resource ID.
    publicNetworkAccess string | PublicNetworkAccessOptions
    privateLink String
    The rmpl Resource ID.
    publicNetworkAccess String | "Enabled" | "Disabled"

    PrivateLinkAssociationPropertiesExpandedResponse, PrivateLinkAssociationPropertiesExpandedResponseArgs

    PrivateLink string
    The rmpl Resource ID.
    PublicNetworkAccess string
    Scope string
    The scope of the private link association.
    TenantID string
    The TenantID.
    PrivateLink string
    The rmpl Resource ID.
    PublicNetworkAccess string
    Scope string
    The scope of the private link association.
    TenantID string
    The TenantID.
    privateLink String
    The rmpl Resource ID.
    publicNetworkAccess String
    scope String
    The scope of the private link association.
    tenantID String
    The TenantID.
    privateLink string
    The rmpl Resource ID.
    publicNetworkAccess string
    scope string
    The scope of the private link association.
    tenantID string
    The TenantID.
    private_link str
    The rmpl Resource ID.
    public_network_access str
    scope str
    The scope of the private link association.
    tenant_id str
    The TenantID.
    privateLink String
    The rmpl Resource ID.
    publicNetworkAccess String
    scope String
    The scope of the private link association.
    tenantID String
    The TenantID.

    PublicNetworkAccessOptions, PublicNetworkAccessOptionsArgs

    Enabled
    Enabled
    Disabled
    Disabled
    PublicNetworkAccessOptionsEnabled
    Enabled
    PublicNetworkAccessOptionsDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:authorization:PrivateLinkAssociation my-pla /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Authorization/privateLinkAssociations/{plaId} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi