azure-native.digitaltwins.PrivateEndpointConnection
Explore with Pulumi AI
The private endpoint connection of a Digital Twin. API Version: 2020-12-01.
Example Usage
Update the status of a private endpoint connection with the given name
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.DigitalTwins.PrivateEndpointConnection("privateEndpointConnection", new()
{
PrivateEndpointConnectionName = "myPrivateConnection",
Properties = new AzureNative.DigitalTwins.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.DigitalTwins.Inputs.ConnectionPropertiesPrivateLinkServiceConnectionStateArgs
{
Description = "Approved by johndoe@company.com.",
Status = "Approved",
},
},
ResourceGroupName = "resRg",
ResourceName = "myDigitalTwinsService",
});
});
package main
import (
digitaltwins "github.com/pulumi/pulumi-azure-native-sdk/digitaltwins"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := digitaltwins.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &digitaltwins.PrivateEndpointConnectionArgs{
PrivateEndpointConnectionName: pulumi.String("myPrivateConnection"),
Properties: digitaltwins.PrivateEndpointConnectionResponseProperties{
PrivateLinkServiceConnectionState: &digitaltwins.ConnectionPropertiesPrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approved by johndoe@company.com."),
Status: pulumi.String("Approved"),
},
},
ResourceGroupName: pulumi.String("resRg"),
ResourceName: pulumi.String("myDigitalTwinsService"),
})
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.digitaltwins.PrivateEndpointConnection;
import com.pulumi.azurenative.digitaltwins.PrivateEndpointConnectionArgs;
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()
.privateEndpointConnectionName("myPrivateConnection")
.properties(Map.of("privateLinkServiceConnectionState", Map.ofEntries(
Map.entry("description", "Approved by johndoe@company.com."),
Map.entry("status", "Approved")
)))
.resourceGroupName("resRg")
.resourceName("myDigitalTwinsService")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
private_endpoint_connection = azure_native.digitaltwins.PrivateEndpointConnection("privateEndpointConnection",
private_endpoint_connection_name="myPrivateConnection",
properties=azure_native.digitaltwins.PrivateEndpointConnectionResponsePropertiesArgs(
private_link_service_connection_state=azure_native.digitaltwins.ConnectionPropertiesPrivateLinkServiceConnectionStateArgs(
description="Approved by johndoe@company.com.",
status="Approved",
),
),
resource_group_name="resRg",
resource_name_="myDigitalTwinsService")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const privateEndpointConnection = new azure_native.digitaltwins.PrivateEndpointConnection("privateEndpointConnection", {
privateEndpointConnectionName: "myPrivateConnection",
properties: {
privateLinkServiceConnectionState: {
description: "Approved by johndoe@company.com.",
status: "Approved",
},
},
resourceGroupName: "resRg",
resourceName: "myDigitalTwinsService",
});
resources:
privateEndpointConnection:
type: azure-native:digitaltwins:PrivateEndpointConnection
properties:
privateEndpointConnectionName: myPrivateConnection
properties:
privateLinkServiceConnectionState:
description: Approved by johndoe@company.com.
status: Approved
resourceGroupName: resRg
resourceName: myDigitalTwinsService
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: PrivateEndpointConnectionInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateEndpointConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[PrivateEndpointConnectionPropertiesArgs] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
private_endpoint_connection_name: Optional[str] = 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:digitaltwins: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 PrivateEndpointConnectionInitArgs
- 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 exampleprivateEndpointConnectionResourceResourceFromDigitaltwins = new AzureNative.Digitaltwins.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDigitaltwins", new()
{
Properties =
{
{ "groupIds", new[]
{
"string",
} },
{ "privateLinkServiceConnectionState",
{
{ "description", "string" },
{ "status", "string" },
{ "actionsRequired", "string" },
} },
},
ResourceGroupName = "string",
ResourceName = "string",
PrivateEndpointConnectionName = "string",
});
example, err := digitaltwins.NewPrivateEndpointConnection(ctx, "exampleprivateEndpointConnectionResourceResourceFromDigitaltwins", &digitaltwins.PrivateEndpointConnectionArgs{
Properties: map[string]interface{}{
"groupIds": []string{
"string",
},
"privateLinkServiceConnectionState": map[string]interface{}{
"description": "string",
"status": "string",
"actionsRequired": "string",
},
},
ResourceGroupName: "string",
ResourceName: "string",
PrivateEndpointConnectionName: "string",
})
var exampleprivateEndpointConnectionResourceResourceFromDigitaltwins = new PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDigitaltwins", PrivateEndpointConnectionArgs.builder()
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.resourceName("string")
.privateEndpointConnectionName("string")
.build());
exampleprivate_endpoint_connection_resource_resource_from_digitaltwins = azure_native.digitaltwins.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDigitaltwins",
properties={
groupIds: [string],
privateLinkServiceConnectionState: {
description: string,
status: string,
actionsRequired: string,
},
},
resource_group_name=string,
resource_name_=string,
private_endpoint_connection_name=string)
const exampleprivateEndpointConnectionResourceResourceFromDigitaltwins = new azure_native.digitaltwins.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromDigitaltwins", {
properties: {
groupIds: ["string"],
privateLinkServiceConnectionState: {
description: "string",
status: "string",
actionsRequired: "string",
},
},
resourceGroupName: "string",
resourceName: "string",
privateEndpointConnectionName: "string",
});
type: azure-native:digitaltwins:PrivateEndpointConnection
properties:
privateEndpointConnectionName: string
properties:
groupIds:
- string
privateLinkServiceConnectionState:
actionsRequired: string
description: string
status: string
resourceGroupName: string
resourceName: 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:
- Properties
Pulumi.
Azure Native. Digital Twins. Inputs. Private Endpoint Connection Properties - Resource
Group stringName - The name of the resource group that contains the DigitalTwinsInstance.
- Resource
Name string - The name of the DigitalTwinsInstance.
- Private
Endpoint stringConnection Name - The name of the private endpoint connection.
- Properties
Private
Endpoint Connection Properties Args - Resource
Group stringName - The name of the resource group that contains the DigitalTwinsInstance.
- Resource
Name string - The name of the DigitalTwinsInstance.
- Private
Endpoint stringConnection Name - The name of the private endpoint connection.
- properties
Private
Endpoint Connection Properties - resource
Group StringName - The name of the resource group that contains the DigitalTwinsInstance.
- resource
Name String - The name of the DigitalTwinsInstance.
- private
Endpoint StringConnection Name - The name of the private endpoint connection.
- properties
Private
Endpoint Connection Properties - resource
Group stringName - The name of the resource group that contains the DigitalTwinsInstance.
- resource
Name string - The name of the DigitalTwinsInstance.
- private
Endpoint stringConnection Name - The name of the private endpoint connection.
- properties
Private
Endpoint Connection Properties Args - resource_
group_ strname - The name of the resource group that contains the DigitalTwinsInstance.
- resource_
name str - The name of the DigitalTwinsInstance.
- private_
endpoint_ strconnection_ name - The name of the private endpoint connection.
- properties Property Map
- resource
Group StringName - The name of the resource group that contains the DigitalTwinsInstance.
- resource
Name String - The name of the DigitalTwinsInstance.
- private
Endpoint StringConnection Name - The name of the private endpoint connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpointConnection resource produces the following output properties:
Supporting Types
ConnectionPropertiesPrivateLinkServiceConnectionState, ConnectionPropertiesPrivateLinkServiceConnectionStateArgs
- Description string
- The description for the current state of a private endpoint connection.
- Status
string | Pulumi.
Azure Native. Digital Twins. Private Link Service Connection Status - The status of a private endpoint connection.
- Actions
Required string - Actions required for a private endpoint connection.
- Description string
- The description for the current state of a private endpoint connection.
- Status
string | Private
Link Service Connection Status - The status of a private endpoint connection.
- Actions
Required string - Actions required for a private endpoint connection.
- description String
- The description for the current state of a private endpoint connection.
- status
String | Private
Link Service Connection Status - The status of a private endpoint connection.
- actions
Required String - Actions required for a private endpoint connection.
- description string
- The description for the current state of a private endpoint connection.
- status
string | Private
Link Service Connection Status - The status of a private endpoint connection.
- actions
Required string - Actions required for a private endpoint connection.
- description str
- The description for the current state of a private endpoint connection.
- status
str | Private
Link Service Connection Status - The status of a private endpoint connection.
- actions_
required str - Actions required for a private endpoint connection.
- description String
- The description for the current state of a private endpoint connection.
- status String | "Pending" | "Approved" | "Rejected" | "Disconnected"
- The status of a private endpoint connection.
- actions
Required String - Actions required for a private endpoint connection.
ConnectionPropertiesResponsePrivateEndpoint, ConnectionPropertiesResponsePrivateEndpointArgs
- Id string
- The resource identifier.
- Id string
- The resource identifier.
- id String
- The resource identifier.
- id string
- The resource identifier.
- id str
- The resource identifier.
- id String
- The resource identifier.
ConnectionPropertiesResponsePrivateLinkServiceConnectionState, ConnectionPropertiesResponsePrivateLinkServiceConnectionStateArgs
- Description string
- The description for the current state of a private endpoint connection.
- Status string
- The status of a private endpoint connection.
- Actions
Required string - Actions required for a private endpoint connection.
- Description string
- The description for the current state of a private endpoint connection.
- Status string
- The status of a private endpoint connection.
- Actions
Required string - Actions required for a private endpoint connection.
- description String
- The description for the current state of a private endpoint connection.
- status String
- The status of a private endpoint connection.
- actions
Required String - Actions required for a private endpoint connection.
- description string
- The description for the current state of a private endpoint connection.
- status string
- The status of a private endpoint connection.
- actions
Required string - Actions required for a private endpoint connection.
- description str
- The description for the current state of a private endpoint connection.
- status str
- The status of a private endpoint connection.
- actions_
required str - Actions required for a private endpoint connection.
- description String
- The description for the current state of a private endpoint connection.
- status String
- The status of a private endpoint connection.
- actions
Required String - Actions required for a private endpoint connection.
PrivateEndpointConnectionProperties, PrivateEndpointConnectionPropertiesArgs
- Group
Ids List<string> - The list of group ids for the private endpoint connection.
- Private
Link Pulumi.Service Connection State Azure Native. Digital Twins. Inputs. Connection Properties Private Link Service Connection State
- Group
Ids []string - The list of group ids for the private endpoint connection.
- Private
Link ConnectionService Connection State Properties Private Link Service Connection State
- group
Ids List<String> - The list of group ids for the private endpoint connection.
- private
Link ConnectionService Connection State Properties Private Link Service Connection State
- group
Ids string[] - The list of group ids for the private endpoint connection.
- private
Link ConnectionService Connection State Properties Private Link Service Connection State
- group_
ids Sequence[str] - The list of group ids for the private endpoint connection.
- private_
link_ Connectionservice_ connection_ state Properties Private Link Service Connection State
- group
Ids List<String> - The list of group ids for the private endpoint connection.
- private
Link Property MapService Connection State
PrivateEndpointConnectionResponseProperties, PrivateEndpointConnectionResponsePropertiesArgs
- Provisioning
State string - The provisioning state.
- Group
Ids List<string> - The list of group ids for the private endpoint connection.
- Private
Endpoint Pulumi.Azure Native. Digital Twins. Inputs. Connection Properties Response Private Endpoint - Private
Link Pulumi.Service Connection State Azure Native. Digital Twins. Inputs. Connection Properties Response Private Link Service Connection State
- Provisioning
State string - The provisioning state.
- Group
Ids []string - The list of group ids for the private endpoint connection.
- Private
Endpoint ConnectionProperties Response Private Endpoint - Private
Link ConnectionService Connection State Properties Response Private Link Service Connection State
- provisioning
State String - The provisioning state.
- group
Ids List<String> - The list of group ids for the private endpoint connection.
- private
Endpoint ConnectionProperties Response Private Endpoint - private
Link ConnectionService Connection State Properties Response Private Link Service Connection State
- provisioning
State string - The provisioning state.
- group
Ids string[] - The list of group ids for the private endpoint connection.
- private
Endpoint ConnectionProperties Response Private Endpoint - private
Link ConnectionService Connection State Properties Response Private Link Service Connection State
- provisioning_
state str - The provisioning state.
- group_
ids Sequence[str] - The list of group ids for the private endpoint connection.
- private_
endpoint ConnectionProperties Response Private Endpoint - private_
link_ Connectionservice_ connection_ state Properties Response Private Link Service Connection State
- provisioning
State String - The provisioning state.
- group
Ids List<String> - The list of group ids for the private endpoint connection.
- private
Endpoint Property Map - private
Link Property MapService Connection State
PrivateLinkServiceConnectionStatus, PrivateLinkServiceConnectionStatusArgs
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- Disconnected
- Disconnected
- Private
Link Service Connection Status Pending - Pending
- Private
Link Service Connection Status Approved - Approved
- Private
Link Service Connection Status Rejected - Rejected
- Private
Link Service Connection Status Disconnected - Disconnected
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- Disconnected
- Disconnected
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- Disconnected
- Disconnected
- PENDING
- Pending
- APPROVED
- Approved
- REJECTED
- Rejected
- DISCONNECTED
- Disconnected
- "Pending"
- Pending
- "Approved"
- Approved
- "Rejected"
- Rejected
- "Disconnected"
- Disconnected
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:digitaltwins:PrivateEndpointConnection myPrivateConnection /subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/privateEndpointConnections/myPrivateConnection
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0