azure-native.devices.IotDpsResourcePrivateEndpointConnection
Explore with Pulumi AI
The private endpoint connection of a provisioning service API Version: 2020-03-01.
Example Usage
PrivateEndpointConnection_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var iotDpsResourcePrivateEndpointConnection = new AzureNative.Devices.IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnection", new()
{
PrivateEndpointConnectionName = "myPrivateEndpointConnection",
Properties = new AzureNative.Devices.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.Devices.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Approved by johndoe@contoso.com",
Status = "Approved",
},
},
ResourceGroupName = "myResourceGroup",
ResourceName = "myFirstProvisioningService",
});
});
package main
import (
devices "github.com/pulumi/pulumi-azure-native-sdk/devices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devices.NewIotDpsResourcePrivateEndpointConnection(ctx, "iotDpsResourcePrivateEndpointConnection", &devices.IotDpsResourcePrivateEndpointConnectionArgs{
PrivateEndpointConnectionName: pulumi.String("myPrivateEndpointConnection"),
Properties: devices.PrivateEndpointConnectionPropertiesResponse{
PrivateLinkServiceConnectionState: &devices.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approved by johndoe@contoso.com"),
Status: pulumi.String("Approved"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ResourceName: pulumi.String("myFirstProvisioningService"),
})
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.devices.IotDpsResourcePrivateEndpointConnection;
import com.pulumi.azurenative.devices.IotDpsResourcePrivateEndpointConnectionArgs;
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 iotDpsResourcePrivateEndpointConnection = new IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnection", IotDpsResourcePrivateEndpointConnectionArgs.builder()
.privateEndpointConnectionName("myPrivateEndpointConnection")
.properties(Map.of("privateLinkServiceConnectionState", Map.ofEntries(
Map.entry("description", "Approved by johndoe@contoso.com"),
Map.entry("status", "Approved")
)))
.resourceGroupName("myResourceGroup")
.resourceName("myFirstProvisioningService")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
iot_dps_resource_private_endpoint_connection = azure_native.devices.IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnection",
private_endpoint_connection_name="myPrivateEndpointConnection",
properties=azure_native.devices.PrivateEndpointConnectionPropertiesResponseArgs(
private_link_service_connection_state=azure_native.devices.PrivateLinkServiceConnectionStateArgs(
description="Approved by johndoe@contoso.com",
status="Approved",
),
),
resource_group_name="myResourceGroup",
resource_name_="myFirstProvisioningService")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const iotDpsResourcePrivateEndpointConnection = new azure_native.devices.IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnection", {
privateEndpointConnectionName: "myPrivateEndpointConnection",
properties: {
privateLinkServiceConnectionState: {
description: "Approved by johndoe@contoso.com",
status: "Approved",
},
},
resourceGroupName: "myResourceGroup",
resourceName: "myFirstProvisioningService",
});
resources:
iotDpsResourcePrivateEndpointConnection:
type: azure-native:devices:IotDpsResourcePrivateEndpointConnection
properties:
privateEndpointConnectionName: myPrivateEndpointConnection
properties:
privateLinkServiceConnectionState:
description: Approved by johndoe@contoso.com
status: Approved
resourceGroupName: myResourceGroup
resourceName: myFirstProvisioningService
Create IotDpsResourcePrivateEndpointConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IotDpsResourcePrivateEndpointConnection(name: string, args: IotDpsResourcePrivateEndpointConnectionArgs, opts?: CustomResourceOptions);
@overload
def IotDpsResourcePrivateEndpointConnection(resource_name: str,
args: IotDpsResourcePrivateEndpointConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IotDpsResourcePrivateEndpointConnection(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 NewIotDpsResourcePrivateEndpointConnection(ctx *Context, name string, args IotDpsResourcePrivateEndpointConnectionArgs, opts ...ResourceOption) (*IotDpsResourcePrivateEndpointConnection, error)
public IotDpsResourcePrivateEndpointConnection(string name, IotDpsResourcePrivateEndpointConnectionArgs args, CustomResourceOptions? opts = null)
public IotDpsResourcePrivateEndpointConnection(String name, IotDpsResourcePrivateEndpointConnectionArgs args)
public IotDpsResourcePrivateEndpointConnection(String name, IotDpsResourcePrivateEndpointConnectionArgs args, CustomResourceOptions options)
type: azure-native:devices:IotDpsResourcePrivateEndpointConnection
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 IotDpsResourcePrivateEndpointConnectionArgs
- 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 IotDpsResourcePrivateEndpointConnectionArgs
- 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 IotDpsResourcePrivateEndpointConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotDpsResourcePrivateEndpointConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IotDpsResourcePrivateEndpointConnectionArgs
- 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 iotDpsResourcePrivateEndpointConnectionResource = new AzureNative.Devices.IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnectionResource", new()
{
Properties =
{
{ "privateLinkServiceConnectionState",
{
{ "description", "string" },
{ "status", "string" },
{ "actionsRequired", "string" },
} },
},
ResourceGroupName = "string",
ResourceName = "string",
PrivateEndpointConnectionName = "string",
});
example, err := devices.NewIotDpsResourcePrivateEndpointConnection(ctx, "iotDpsResourcePrivateEndpointConnectionResource", &devices.IotDpsResourcePrivateEndpointConnectionArgs{
Properties: map[string]interface{}{
"privateLinkServiceConnectionState": map[string]interface{}{
"description": "string",
"status": "string",
"actionsRequired": "string",
},
},
ResourceGroupName: "string",
ResourceName: "string",
PrivateEndpointConnectionName: "string",
})
var iotDpsResourcePrivateEndpointConnectionResource = new IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnectionResource", IotDpsResourcePrivateEndpointConnectionArgs.builder()
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.resourceName("string")
.privateEndpointConnectionName("string")
.build());
iot_dps_resource_private_endpoint_connection_resource = azure_native.devices.IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnectionResource",
properties={
privateLinkServiceConnectionState: {
description: string,
status: string,
actionsRequired: string,
},
},
resource_group_name=string,
resource_name_=string,
private_endpoint_connection_name=string)
const iotDpsResourcePrivateEndpointConnectionResource = new azure_native.devices.IotDpsResourcePrivateEndpointConnection("iotDpsResourcePrivateEndpointConnectionResource", {
properties: {
privateLinkServiceConnectionState: {
description: "string",
status: "string",
actionsRequired: "string",
},
},
resourceGroupName: "string",
resourceName: "string",
privateEndpointConnectionName: "string",
});
type: azure-native:devices:IotDpsResourcePrivateEndpointConnection
properties:
privateEndpointConnectionName: string
properties:
privateLinkServiceConnectionState:
actionsRequired: string
description: string
status: string
resourceGroupName: string
resourceName: string
IotDpsResourcePrivateEndpointConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IotDpsResourcePrivateEndpointConnection resource accepts the following input properties:
- Properties
Pulumi.
Azure Native. Devices. Inputs. Private Endpoint Connection Properties - The properties of a private endpoint connection
- Resource
Group stringName - The name of the resource group that contains the provisioning service.
- Resource
Name string - The name of the provisioning service.
- Private
Endpoint stringConnection Name - The name of the private endpoint connection
- Properties
Private
Endpoint Connection Properties Args - The properties of a private endpoint connection
- Resource
Group stringName - The name of the resource group that contains the provisioning service.
- Resource
Name string - The name of the provisioning service.
- Private
Endpoint stringConnection Name - The name of the private endpoint connection
- properties
Private
Endpoint Connection Properties - The properties of a private endpoint connection
- resource
Group StringName - The name of the resource group that contains the provisioning service.
- resource
Name String - The name of the provisioning service.
- private
Endpoint StringConnection Name - The name of the private endpoint connection
- properties
Private
Endpoint Connection Properties - The properties of a private endpoint connection
- resource
Group stringName - The name of the resource group that contains the provisioning service.
- resource
Name string - The name of the provisioning service.
- private
Endpoint stringConnection Name - The name of the private endpoint connection
- properties
Private
Endpoint Connection Properties Args - The properties of a private endpoint connection
- resource_
group_ strname - The name of the resource group that contains the provisioning service.
- resource_
name str - The name of the provisioning service.
- private_
endpoint_ strconnection_ name - The name of the private endpoint connection
- properties Property Map
- The properties of a private endpoint connection
- resource
Group StringName - The name of the resource group that contains the provisioning service.
- resource
Name String - The name of the provisioning service.
- private
Endpoint StringConnection Name - The name of the private endpoint connection
Outputs
All input properties are implicitly available as output properties. Additionally, the IotDpsResourcePrivateEndpointConnection resource produces the following output properties:
Supporting Types
PrivateEndpointConnectionProperties, PrivateEndpointConnectionPropertiesArgs
- Private
Link Pulumi.Service Connection State Azure Native. Devices. Inputs. Private Link Service Connection State - The current state of a private endpoint connection
- Private
Link PrivateService Connection State Link Service Connection State - The current state of a private endpoint connection
- private
Link PrivateService Connection State Link Service Connection State - The current state of a private endpoint connection
- private
Link PrivateService Connection State Link Service Connection State - The current state of a private endpoint connection
- private_
link_ Privateservice_ connection_ state Link Service Connection State - The current state of a private endpoint connection
- private
Link Property MapService Connection State - The current state of a private endpoint connection
PrivateEndpointConnectionPropertiesResponse, PrivateEndpointConnectionPropertiesResponseArgs
- Private
Link Pulumi.Service Connection State Azure Native. Devices. Inputs. Private Link Service Connection State Response - The current state of a private endpoint connection
- Private
Endpoint Pulumi.Azure Native. Devices. Inputs. Private Endpoint Response - The private endpoint property of a private endpoint connection
- Private
Link PrivateService Connection State Link Service Connection State Response - The current state of a private endpoint connection
- Private
Endpoint PrivateEndpoint Response - The private endpoint property of a private endpoint connection
- private
Link PrivateService Connection State Link Service Connection State Response - The current state of a private endpoint connection
- private
Endpoint PrivateEndpoint Response - The private endpoint property of a private endpoint connection
- private
Link PrivateService Connection State Link Service Connection State Response - The current state of a private endpoint connection
- private
Endpoint PrivateEndpoint Response - The private endpoint property of a private endpoint connection
- private_
link_ Privateservice_ connection_ state Link Service Connection State Response - The current state of a private endpoint connection
- private_
endpoint PrivateEndpoint Response - The private endpoint property of a private endpoint connection
- private
Link Property MapService Connection State - The current state of a private endpoint connection
- private
Endpoint Property Map - The private endpoint property of a private endpoint connection
PrivateEndpointResponse, PrivateEndpointResponseArgs
- 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.
PrivateLinkServiceConnectionState, PrivateLinkServiceConnectionStateArgs
- Description string
- The description for the current state of a private endpoint connection
- Status
string | Pulumi.
Azure Native. Devices. 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
PrivateLinkServiceConnectionStateResponse, PrivateLinkServiceConnectionStateResponseArgs
- 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
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:devices:IotDpsResourcePrivateEndpointConnection myPrivateEndpointConnection /subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/PrivateEndpointConnections/myPrivateEndpointConnection
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