azure-native.datafactory.PrivateEndpointConnection
Explore with Pulumi AI
Private Endpoint Connection ARM resource. Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
Example Usage
Approves or rejects a private endpoint connection for a factory.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.DataFactory.PrivateEndpointConnection("privateEndpointConnection", new()
{
FactoryName = "exampleFactoryName",
PrivateEndpointConnectionName = "connection",
Properties = new AzureNative.DataFactory.Inputs.PrivateLinkConnectionApprovalRequestArgs
{
PrivateEndpoint = new AzureNative.DataFactory.Inputs.PrivateEndpointArgs
{
Id = "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint",
},
PrivateLinkServiceConnectionState = new AzureNative.DataFactory.Inputs.PrivateLinkConnectionStateArgs
{
ActionsRequired = "",
Description = "Approved by admin.",
Status = "Approved",
},
},
ResourceGroupName = "exampleResourceGroup",
});
});
package main
import (
datafactory "github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datafactory.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &datafactory.PrivateEndpointConnectionArgs{
FactoryName: pulumi.String("exampleFactoryName"),
PrivateEndpointConnectionName: pulumi.String("connection"),
Properties: &datafactory.PrivateLinkConnectionApprovalRequestArgs{
PrivateEndpoint: &datafactory.PrivateEndpointArgs{
Id: pulumi.String("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"),
},
PrivateLinkServiceConnectionState: &datafactory.PrivateLinkConnectionStateArgs{
ActionsRequired: pulumi.String(""),
Description: pulumi.String("Approved by admin."),
Status: pulumi.String("Approved"),
},
},
ResourceGroupName: pulumi.String("exampleResourceGroup"),
})
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.datafactory.PrivateEndpointConnection;
import com.pulumi.azurenative.datafactory.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.datafactory.inputs.PrivateLinkConnectionApprovalRequestArgs;
import com.pulumi.azurenative.datafactory.inputs.PrivateEndpointArgs;
import com.pulumi.azurenative.datafactory.inputs.PrivateLinkConnectionStateArgs;
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 privateEndpointConnection = new PrivateEndpointConnection("privateEndpointConnection", PrivateEndpointConnectionArgs.builder()
.factoryName("exampleFactoryName")
.privateEndpointConnectionName("connection")
.properties(PrivateLinkConnectionApprovalRequestArgs.builder()
.privateEndpoint(PrivateEndpointArgs.builder()
.id("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint")
.build())
.privateLinkServiceConnectionState(PrivateLinkConnectionStateArgs.builder()
.actionsRequired("")
.description("Approved by admin.")
.status("Approved")
.build())
.build())
.resourceGroupName("exampleResourceGroup")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
private_endpoint_connection = azure_native.datafactory.PrivateEndpointConnection("privateEndpointConnection",
factory_name="exampleFactoryName",
private_endpoint_connection_name="connection",
properties={
"private_endpoint": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint",
},
"private_link_service_connection_state": {
"actions_required": "",
"description": "Approved by admin.",
"status": "Approved",
},
},
resource_group_name="exampleResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const privateEndpointConnection = new azure_native.datafactory.PrivateEndpointConnection("privateEndpointConnection", {
factoryName: "exampleFactoryName",
privateEndpointConnectionName: "connection",
properties: {
privateEndpoint: {
id: "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint",
},
privateLinkServiceConnectionState: {
actionsRequired: "",
description: "Approved by admin.",
status: "Approved",
},
},
resourceGroupName: "exampleResourceGroup",
});
resources:
privateEndpointConnection:
type: azure-native:datafactory:PrivateEndpointConnection
properties:
factoryName: exampleFactoryName
privateEndpointConnectionName: connection
properties:
privateEndpoint:
id: /subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint
privateLinkServiceConnectionState:
actionsRequired:
description: Approved by admin.
status: Approved
resourceGroupName: exampleResourceGroup
Create PrivateEndpointConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateEndpointConnection(name: string, args: PrivateEndpointConnectionArgs, opts?: CustomResourceOptions);
@overload
def PrivateEndpointConnection(resource_name: str,
args: PrivateEndpointConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateEndpointConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
factory_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
private_endpoint_connection_name: Optional[str] = None,
properties: Optional[PrivateLinkConnectionApprovalRequestArgs] = None)
func NewPrivateEndpointConnection(ctx *Context, name string, args PrivateEndpointConnectionArgs, opts ...ResourceOption) (*PrivateEndpointConnection, error)
public PrivateEndpointConnection(string name, PrivateEndpointConnectionArgs args, CustomResourceOptions? opts = null)
public PrivateEndpointConnection(String name, PrivateEndpointConnectionArgs args)
public PrivateEndpointConnection(String name, PrivateEndpointConnectionArgs args, CustomResourceOptions options)
type: azure-native:datafactory:PrivateEndpointConnection
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 PrivateEndpointConnectionArgs
- 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 PrivateEndpointConnectionArgs
- 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 PrivateEndpointConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateEndpointConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateEndpointConnectionArgs
- 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 exampleprivateEndpointConnectionResourceResourceFromDatafactory = new AzureNative.DataFactory.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDatafactory", new()
{
FactoryName = "string",
ResourceGroupName = "string",
PrivateEndpointConnectionName = "string",
Properties = new AzureNative.DataFactory.Inputs.PrivateLinkConnectionApprovalRequestArgs
{
PrivateEndpoint = new AzureNative.DataFactory.Inputs.PrivateEndpointArgs
{
Id = "string",
},
PrivateLinkServiceConnectionState = new AzureNative.DataFactory.Inputs.PrivateLinkConnectionStateArgs
{
ActionsRequired = "string",
Description = "string",
Status = "string",
},
},
});
example, err := datafactory.NewPrivateEndpointConnection(ctx, "exampleprivateEndpointConnectionResourceResourceFromDatafactory", &datafactory.PrivateEndpointConnectionArgs{
FactoryName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
PrivateEndpointConnectionName: pulumi.String("string"),
Properties: &datafactory.PrivateLinkConnectionApprovalRequestArgs{
PrivateEndpoint: &datafactory.PrivateEndpointArgs{
Id: pulumi.String("string"),
},
PrivateLinkServiceConnectionState: &datafactory.PrivateLinkConnectionStateArgs{
ActionsRequired: pulumi.String("string"),
Description: pulumi.String("string"),
Status: pulumi.String("string"),
},
},
})
var exampleprivateEndpointConnectionResourceResourceFromDatafactory = new PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDatafactory", PrivateEndpointConnectionArgs.builder()
.factoryName("string")
.resourceGroupName("string")
.privateEndpointConnectionName("string")
.properties(PrivateLinkConnectionApprovalRequestArgs.builder()
.privateEndpoint(PrivateEndpointArgs.builder()
.id("string")
.build())
.privateLinkServiceConnectionState(PrivateLinkConnectionStateArgs.builder()
.actionsRequired("string")
.description("string")
.status("string")
.build())
.build())
.build());
exampleprivate_endpoint_connection_resource_resource_from_datafactory = azure_native.datafactory.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDatafactory",
factory_name="string",
resource_group_name="string",
private_endpoint_connection_name="string",
properties={
"privateEndpoint": {
"id": "string",
},
"privateLinkServiceConnectionState": {
"actionsRequired": "string",
"description": "string",
"status": "string",
},
})
const exampleprivateEndpointConnectionResourceResourceFromDatafactory = new azure_native.datafactory.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDatafactory", {
factoryName: "string",
resourceGroupName: "string",
privateEndpointConnectionName: "string",
properties: {
privateEndpoint: {
id: "string",
},
privateLinkServiceConnectionState: {
actionsRequired: "string",
description: "string",
status: "string",
},
},
});
type: azure-native:datafactory:PrivateEndpointConnection
properties:
factoryName: string
privateEndpointConnectionName: string
properties:
privateEndpoint:
id: string
privateLinkServiceConnectionState:
actionsRequired: string
description: string
status: string
resourceGroupName: string
PrivateEndpointConnection 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 PrivateEndpointConnection resource accepts the following input properties:
- Factory
Name string - The factory name.
- Resource
Group stringName - The resource group name.
- Private
Endpoint stringConnection Name - The private endpoint connection name.
- Properties
Pulumi.
Azure Native. Data Factory. Inputs. Private Link Connection Approval Request - Core resource properties
- Factory
Name string - The factory name.
- Resource
Group stringName - The resource group name.
- Private
Endpoint stringConnection Name - The private endpoint connection name.
- Properties
Private
Link Connection Approval Request Args - Core resource properties
- factory
Name String - The factory name.
- resource
Group StringName - The resource group name.
- private
Endpoint StringConnection Name - The private endpoint connection name.
- properties
Private
Link Connection Approval Request - Core resource properties
- factory
Name string - The factory name.
- resource
Group stringName - The resource group name.
- private
Endpoint stringConnection Name - The private endpoint connection name.
- properties
Private
Link Connection Approval Request - Core resource properties
- factory_
name str - The factory name.
- resource_
group_ strname - The resource group name.
- private_
endpoint_ strconnection_ name - The private endpoint connection name.
- properties
Private
Link Connection Approval Request Args - Core resource properties
- factory
Name String - The factory name.
- resource
Group StringName - The resource group name.
- private
Endpoint StringConnection Name - The private endpoint connection name.
- properties Property Map
- Core resource properties
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpointConnection resource produces the following output properties:
Supporting Types
ArmIdWrapperResponse, ArmIdWrapperResponseArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
PrivateEndpoint, PrivateEndpointArgs
- Id string
- The resource Id for private endpoint
- Id string
- The resource Id for private endpoint
- id String
- The resource Id for private endpoint
- id string
- The resource Id for private endpoint
- id str
- The resource Id for private endpoint
- id String
- The resource Id for private endpoint
PrivateLinkConnectionApprovalRequest, PrivateLinkConnectionApprovalRequestArgs
- Private
Endpoint Pulumi.Azure Native. Data Factory. Inputs. Private Endpoint - The resource of private endpoint.
- Private
Link Pulumi.Service Connection State Azure Native. Data Factory. Inputs. Private Link Connection State - The state of a private link connection
- Private
Endpoint PrivateEndpoint - The resource of private endpoint.
- Private
Link PrivateService Connection State Link Connection State - The state of a private link connection
- private
Endpoint PrivateEndpoint - The resource of private endpoint.
- private
Link PrivateService Connection State Link Connection State - The state of a private link connection
- private
Endpoint PrivateEndpoint - The resource of private endpoint.
- private
Link PrivateService Connection State Link Connection State - The state of a private link connection
- private_
endpoint PrivateEndpoint - The resource of private endpoint.
- private_
link_ Privateservice_ connection_ state Link Connection State - The state of a private link connection
- private
Endpoint Property Map - The resource of private endpoint.
- private
Link Property MapService Connection State - The state of a private link connection
PrivateLinkConnectionState, PrivateLinkConnectionStateArgs
- Actions
Required string - ActionsRequired for a private link connection
- Description string
- Description of a private link connection
- Status string
- Status of a private link connection
- Actions
Required string - ActionsRequired for a private link connection
- Description string
- Description of a private link connection
- Status string
- Status of a private link connection
- actions
Required String - ActionsRequired for a private link connection
- description String
- Description of a private link connection
- status String
- Status of a private link connection
- actions
Required string - ActionsRequired for a private link connection
- description string
- Description of a private link connection
- status string
- Status of a private link connection
- actions_
required str - ActionsRequired for a private link connection
- description str
- Description of a private link connection
- status str
- Status of a private link connection
- actions
Required String - ActionsRequired for a private link connection
- description String
- Description of a private link connection
- status String
- Status of a private link connection
PrivateLinkConnectionStateResponse, PrivateLinkConnectionStateResponseArgs
- Actions
Required string - ActionsRequired for a private link connection
- Description string
- Description of a private link connection
- Status string
- Status of a private link connection
- Actions
Required string - ActionsRequired for a private link connection
- Description string
- Description of a private link connection
- Status string
- Status of a private link connection
- actions
Required String - ActionsRequired for a private link connection
- description String
- Description of a private link connection
- status String
- Status of a private link connection
- actions
Required string - ActionsRequired for a private link connection
- description string
- Description of a private link connection
- status string
- Status of a private link connection
- actions_
required str - ActionsRequired for a private link connection
- description str
- Description of a private link connection
- status str
- Status of a private link connection
- actions
Required String - ActionsRequired for a private link connection
- description String
- Description of a private link connection
- status String
- Status of a private link connection
RemotePrivateEndpointConnectionResponse, RemotePrivateEndpointConnectionResponseArgs
- Provisioning
State string - Private
Endpoint Pulumi.Azure Native. Data Factory. Inputs. Arm Id Wrapper Response - PrivateEndpoint of a remote private endpoint connection
- Private
Link Pulumi.Service Connection State Azure Native. Data Factory. Inputs. Private Link Connection State Response - The state of a private link connection
- Provisioning
State string - Private
Endpoint ArmId Wrapper Response - PrivateEndpoint of a remote private endpoint connection
- Private
Link PrivateService Connection State Link Connection State Response - The state of a private link connection
- provisioning
State String - private
Endpoint ArmId Wrapper Response - PrivateEndpoint of a remote private endpoint connection
- private
Link PrivateService Connection State Link Connection State Response - The state of a private link connection
- provisioning
State string - private
Endpoint ArmId Wrapper Response - PrivateEndpoint of a remote private endpoint connection
- private
Link PrivateService Connection State Link Connection State Response - The state of a private link connection
- provisioning_
state str - private_
endpoint ArmId Wrapper Response - PrivateEndpoint of a remote private endpoint connection
- private_
link_ Privateservice_ connection_ state Link Connection State Response - The state of a private link connection
- provisioning
State String - private
Endpoint Property Map - PrivateEndpoint of a remote private endpoint connection
- private
Link Property MapService Connection State - The state of a private link connection
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datafactory:PrivateEndpointConnection exampleFactoryName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0