azure-native.migrate.PrivateEndpointConnection
Explore with Pulumi AI
A private endpoint connection for a project. Azure REST API version: 2019-10-01. Prior API version in Azure Native 1.x: 2019-10-01.
Example Usage
PrivateEndpointConnections_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.Migrate.PrivateEndpointConnection("privateEndpointConnection", new()
{
ETag = "\"00009300-0000-0300-0000-602b967b0000\"",
PrivateEndpointConnectionName = "custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43",
ProjectName = "abgoyalWEselfhostb72bproject",
Properties = new AzureNative.Migrate.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.Migrate.Inputs.PrivateLinkServiceConnectionStateArgs
{
ActionsRequired = "",
Status = AzureNative.Migrate.PrivateEndpointServiceConnectionStatus.Approved,
},
},
ResourceGroupName = "abgoyal-westEurope",
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &migrate.PrivateEndpointConnectionArgs{
ETag: pulumi.String("\"00009300-0000-0300-0000-602b967b0000\""),
PrivateEndpointConnectionName: pulumi.String("custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"),
ProjectName: pulumi.String("abgoyalWEselfhostb72bproject"),
Properties: &migrate.PrivateEndpointConnectionPropertiesArgs{
PrivateLinkServiceConnectionState: &migrate.PrivateLinkServiceConnectionStateArgs{
ActionsRequired: pulumi.String(""),
Status: pulumi.String(migrate.PrivateEndpointServiceConnectionStatusApproved),
},
},
ResourceGroupName: pulumi.String("abgoyal-westEurope"),
})
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.migrate.PrivateEndpointConnection;
import com.pulumi.azurenative.migrate.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.migrate.inputs.PrivateEndpointConnectionPropertiesArgs;
import com.pulumi.azurenative.migrate.inputs.PrivateLinkServiceConnectionStateArgs;
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()
.eTag("\"00009300-0000-0300-0000-602b967b0000\"")
.privateEndpointConnectionName("custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43")
.projectName("abgoyalWEselfhostb72bproject")
.properties(PrivateEndpointConnectionPropertiesArgs.builder()
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.actionsRequired("")
.status("Approved")
.build())
.build())
.resourceGroupName("abgoyal-westEurope")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
private_endpoint_connection = azure_native.migrate.PrivateEndpointConnection("privateEndpointConnection",
e_tag="\"00009300-0000-0300-0000-602b967b0000\"",
private_endpoint_connection_name="custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43",
project_name="abgoyalWEselfhostb72bproject",
properties={
"private_link_service_connection_state": {
"actions_required": "",
"status": azure_native.migrate.PrivateEndpointServiceConnectionStatus.APPROVED,
},
},
resource_group_name="abgoyal-westEurope")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const privateEndpointConnection = new azure_native.migrate.PrivateEndpointConnection("privateEndpointConnection", {
eTag: "\"00009300-0000-0300-0000-602b967b0000\"",
privateEndpointConnectionName: "custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43",
projectName: "abgoyalWEselfhostb72bproject",
properties: {
privateLinkServiceConnectionState: {
actionsRequired: "",
status: azure_native.migrate.PrivateEndpointServiceConnectionStatus.Approved,
},
},
resourceGroupName: "abgoyal-westEurope",
});
resources:
privateEndpointConnection:
type: azure-native:migrate:PrivateEndpointConnection
properties:
eTag: '"00009300-0000-0300-0000-602b967b0000"'
privateEndpointConnectionName: custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43
projectName: abgoyalWEselfhostb72bproject
properties:
privateLinkServiceConnectionState:
actionsRequired: ""
status: Approved
resourceGroupName: abgoyal-westEurope
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,
project_name: Optional[str] = None,
properties: Optional[PrivateEndpointConnectionPropertiesArgs] = None,
resource_group_name: Optional[str] = None,
e_tag: 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:migrate: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 exampleprivateEndpointConnectionResourceResourceFromMigrate = new AzureNative.Migrate.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromMigrate", new()
{
ProjectName = "string",
Properties = new AzureNative.Migrate.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.Migrate.Inputs.PrivateLinkServiceConnectionStateArgs
{
ActionsRequired = "string",
Description = "string",
Status = "string",
},
},
ResourceGroupName = "string",
ETag = "string",
PrivateEndpointConnectionName = "string",
});
example, err := migrate.NewPrivateEndpointConnection(ctx, "exampleprivateEndpointConnectionResourceResourceFromMigrate", &migrate.PrivateEndpointConnectionArgs{
ProjectName: pulumi.String("string"),
Properties: &migrate.PrivateEndpointConnectionPropertiesArgs{
PrivateLinkServiceConnectionState: &migrate.PrivateLinkServiceConnectionStateArgs{
ActionsRequired: pulumi.String("string"),
Description: pulumi.String("string"),
Status: pulumi.String("string"),
},
},
ResourceGroupName: pulumi.String("string"),
ETag: pulumi.String("string"),
PrivateEndpointConnectionName: pulumi.String("string"),
})
var exampleprivateEndpointConnectionResourceResourceFromMigrate = new PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromMigrate", PrivateEndpointConnectionArgs.builder()
.projectName("string")
.properties(PrivateEndpointConnectionPropertiesArgs.builder()
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.actionsRequired("string")
.description("string")
.status("string")
.build())
.build())
.resourceGroupName("string")
.eTag("string")
.privateEndpointConnectionName("string")
.build());
exampleprivate_endpoint_connection_resource_resource_from_migrate = azure_native.migrate.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromMigrate",
project_name="string",
properties={
"private_link_service_connection_state": {
"actions_required": "string",
"description": "string",
"status": "string",
},
},
resource_group_name="string",
e_tag="string",
private_endpoint_connection_name="string")
const exampleprivateEndpointConnectionResourceResourceFromMigrate = new azure_native.migrate.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromMigrate", {
projectName: "string",
properties: {
privateLinkServiceConnectionState: {
actionsRequired: "string",
description: "string",
status: "string",
},
},
resourceGroupName: "string",
eTag: "string",
privateEndpointConnectionName: "string",
});
type: azure-native:migrate:PrivateEndpointConnection
properties:
eTag: string
privateEndpointConnectionName: string
projectName: string
properties:
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PrivateEndpointConnection resource accepts the following input properties:
- Project
Name string - Name of the Azure Migrate project.
- Properties
Pulumi.
Azure Native. Migrate. Inputs. Private Endpoint Connection Properties - Properties of the private endpoint endpoint connection.
- Resource
Group stringName - Name of the Azure Resource Group that project is part of.
- ETag string
- For optimistic concurrency control.
- Private
Endpoint stringConnection Name - Unique name of a private endpoint connection within a project.
- Project
Name string - Name of the Azure Migrate project.
- Properties
Private
Endpoint Connection Properties Args - Properties of the private endpoint endpoint connection.
- Resource
Group stringName - Name of the Azure Resource Group that project is part of.
- ETag string
- For optimistic concurrency control.
- Private
Endpoint stringConnection Name - Unique name of a private endpoint connection within a project.
- project
Name String - Name of the Azure Migrate project.
- properties
Private
Endpoint Connection Properties - Properties of the private endpoint endpoint connection.
- resource
Group StringName - Name of the Azure Resource Group that project is part of.
- e
Tag String - For optimistic concurrency control.
- private
Endpoint StringConnection Name - Unique name of a private endpoint connection within a project.
- project
Name string - Name of the Azure Migrate project.
- properties
Private
Endpoint Connection Properties - Properties of the private endpoint endpoint connection.
- resource
Group stringName - Name of the Azure Resource Group that project is part of.
- e
Tag string - For optimistic concurrency control.
- private
Endpoint stringConnection Name - Unique name of a private endpoint connection within a project.
- project_
name str - Name of the Azure Migrate project.
- properties
Private
Endpoint Connection Properties Args - Properties of the private endpoint endpoint connection.
- resource_
group_ strname - Name of the Azure Resource Group that project is part of.
- e_
tag str - For optimistic concurrency control.
- private_
endpoint_ strconnection_ name - Unique name of a private endpoint connection within a project.
- project
Name String - Name of the Azure Migrate project.
- properties Property Map
- Properties of the private endpoint endpoint connection.
- resource
Group StringName - Name of the Azure Resource Group that project is part of.
- e
Tag String - For optimistic concurrency control.
- private
Endpoint StringConnection Name - Unique name of a private endpoint connection within a project.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpointConnection resource produces the following output properties:
Supporting Types
PrivateEndpointConnectionProperties, PrivateEndpointConnectionPropertiesArgs
- Private
Link Pulumi.Service Connection State Azure Native. Migrate. Inputs. Private Link Service Connection State - State of the private endpoint connection.
- Private
Link PrivateService Connection State Link Service Connection State - State of the private endpoint connection.
- private
Link PrivateService Connection State Link Service Connection State - State of the private endpoint connection.
- private
Link PrivateService Connection State Link Service Connection State - State of the private endpoint connection.
- private_
link_ Privateservice_ connection_ state Link Service Connection State - State of the private endpoint connection.
- private
Link Property MapService Connection State - State of the private endpoint connection.
PrivateEndpointConnectionPropertiesResponse, PrivateEndpointConnectionPropertiesResponseArgs
- Private
Endpoint Pulumi.Azure Native. Migrate. Inputs. Resource Id Response - ARM id for the private endpoint resource corresponding to the connection.
- Provisioning
State string - Indicates whether there is an ongoing operation on the private endpoint.
- Private
Link Pulumi.Service Connection State Azure Native. Migrate. Inputs. Private Link Service Connection State Response - State of the private endpoint connection.
- Private
Endpoint ResourceId Response - ARM id for the private endpoint resource corresponding to the connection.
- Provisioning
State string - Indicates whether there is an ongoing operation on the private endpoint.
- Private
Link PrivateService Connection State Link Service Connection State Response - State of the private endpoint connection.
- private
Endpoint ResourceId Response - ARM id for the private endpoint resource corresponding to the connection.
- provisioning
State String - Indicates whether there is an ongoing operation on the private endpoint.
- private
Link PrivateService Connection State Link Service Connection State Response - State of the private endpoint connection.
- private
Endpoint ResourceId Response - ARM id for the private endpoint resource corresponding to the connection.
- provisioning
State string - Indicates whether there is an ongoing operation on the private endpoint.
- private
Link PrivateService Connection State Link Service Connection State Response - State of the private endpoint connection.
- private_
endpoint ResourceId Response - ARM id for the private endpoint resource corresponding to the connection.
- provisioning_
state str - Indicates whether there is an ongoing operation on the private endpoint.
- private_
link_ Privateservice_ connection_ state Link Service Connection State Response - State of the private endpoint connection.
- private
Endpoint Property Map - ARM id for the private endpoint resource corresponding to the connection.
- provisioning
State String - Indicates whether there is an ongoing operation on the private endpoint.
- private
Link Property MapService Connection State - State of the private endpoint connection.
PrivateEndpointServiceConnectionStatus, PrivateEndpointServiceConnectionStatusArgs
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- Private
Endpoint Service Connection Status Pending - Pending
- Private
Endpoint Service Connection Status Approved - Approved
- Private
Endpoint Service Connection Status Rejected - Rejected
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- PENDING
- Pending
- APPROVED
- Approved
- REJECTED
- Rejected
- "Pending"
- Pending
- "Approved"
- Approved
- "Rejected"
- Rejected
PrivateLinkServiceConnectionState, PrivateLinkServiceConnectionStateArgs
- Actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- Description string
- The reason for approval/rejection of the connection.
- Status
string | Pulumi.
Azure | Pulumi.Native. Migrate. Private Endpoint Service Connection Status Azure Native. Migrate. Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- Actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- Description string
- The reason for approval/rejection of the connection.
- Status
string | Private
Endpoint | StatusService Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required String - A message indicating if changes on the service provider require any updates on the consumer.
- description String
- The reason for approval/rejection of the connection.
- status
String | Private
Endpoint | StatusService Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- description string
- The reason for approval/rejection of the connection.
- status
string | Private
Endpoint | StatusService Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions_
required str - A message indicating if changes on the service provider require any updates on the consumer.
- description str
- The reason for approval/rejection of the connection.
- status
str | Private
Endpoint | StatusService Connection Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required String - A message indicating if changes on the service provider require any updates on the consumer.
- description String
- The reason for approval/rejection of the connection.
- status String | "Pending" | "Approved" | "Rejected" | "Inactive" | "Active"
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
PrivateLinkServiceConnectionStateResponse, PrivateLinkServiceConnectionStateResponseArgs
- Actions
Required string - Actions required on the private endpoint connection.
- Description string
- Description of the private endpoint connection.
- Status string
- Connection status of the private endpoint connection.
- Actions
Required string - Actions required on the private endpoint connection.
- Description string
- Description of the private endpoint connection.
- Status string
- Connection status of the private endpoint connection.
- actions
Required String - Actions required on the private endpoint connection.
- description String
- Description of the private endpoint connection.
- status String
- Connection status of the private endpoint connection.
- actions
Required string - Actions required on the private endpoint connection.
- description string
- Description of the private endpoint connection.
- status string
- Connection status of the private endpoint connection.
- actions_
required str - Actions required on the private endpoint connection.
- description str
- Description of the private endpoint connection.
- status str
- Connection status of the private endpoint connection.
- actions
Required String - Actions required on the private endpoint connection.
- description String
- Description of the private endpoint connection.
- status String
- Connection status of the private endpoint connection.
ResourceIdResponse, ResourceIdResponseArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
Status, StatusArgs
- Inactive
- Inactive
- Active
- Active
- Status
Inactive - Inactive
- Status
Active - Active
- Inactive
- Inactive
- Active
- Active
- Inactive
- Inactive
- Active
- Active
- INACTIVE
- Inactive
- ACTIVE
- Active
- "Inactive"
- Inactive
- "Active"
- Active
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:migrate:PrivateEndpointConnection custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentprojects/{projectName}/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