azure-native.containerservice.PrivateEndpointConnection
Explore with Pulumi AI
A private endpoint connection Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-03-01.
Other available API versions: 2023-05-02-preview, 2023-06-01, 2023-06-02-preview, 2023-07-01, 2023-07-02-preview, 2023-08-01, 2023-08-02-preview, 2023-09-01, 2023-09-02-preview, 2023-10-01, 2023-10-02-preview, 2023-11-01, 2023-11-02-preview, 2024-01-01, 2024-01-02-preview, 2024-02-01, 2024-02-02-preview, 2024-03-02-preview, 2024-04-02-preview, 2024-05-01, 2024-05-02-preview, 2024-06-02-preview, 2024-07-01, 2024-07-02-preview, 2024-08-01, 2024-09-01, 2024-09-02-preview, 2024-10-01.
Example Usage
Update Private Endpoint Connection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var privateEndpointConnection = new AzureNative.ContainerService.PrivateEndpointConnection("privateEndpointConnection", new()
    {
        PrivateEndpointConnectionName = "privateendpointconnection1",
        PrivateLinkServiceConnectionState = new AzureNative.ContainerService.Inputs.PrivateLinkServiceConnectionStateArgs
        {
            Status = AzureNative.ContainerService.ConnectionStatus.Approved,
        },
        ResourceGroupName = "rg1",
        ResourceName = "clustername1",
    });
});
package main
import (
	containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerservice.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &containerservice.PrivateEndpointConnectionArgs{
			PrivateEndpointConnectionName: pulumi.String("privateendpointconnection1"),
			PrivateLinkServiceConnectionState: &containerservice.PrivateLinkServiceConnectionStateArgs{
				Status: pulumi.String(containerservice.ConnectionStatusApproved),
			},
			ResourceGroupName: pulumi.String("rg1"),
			ResourceName:      pulumi.String("clustername1"),
		})
		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.containerservice.PrivateEndpointConnection;
import com.pulumi.azurenative.containerservice.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.containerservice.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()
            .privateEndpointConnectionName("privateendpointconnection1")
            .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
                .status("Approved")
                .build())
            .resourceGroupName("rg1")
            .resourceName("clustername1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const privateEndpointConnection = new azure_native.containerservice.PrivateEndpointConnection("privateEndpointConnection", {
    privateEndpointConnectionName: "privateendpointconnection1",
    privateLinkServiceConnectionState: {
        status: azure_native.containerservice.ConnectionStatus.Approved,
    },
    resourceGroupName: "rg1",
    resourceName: "clustername1",
});
import pulumi
import pulumi_azure_native as azure_native
private_endpoint_connection = azure_native.containerservice.PrivateEndpointConnection("privateEndpointConnection",
    private_endpoint_connection_name="privateendpointconnection1",
    private_link_service_connection_state={
        "status": azure_native.containerservice.ConnectionStatus.APPROVED,
    },
    resource_group_name="rg1",
    resource_name_="clustername1")
resources:
  privateEndpointConnection:
    type: azure-native:containerservice:PrivateEndpointConnection
    properties:
      privateEndpointConnectionName: privateendpointconnection1
      privateLinkServiceConnectionState:
        status: Approved
      resourceGroupName: rg1
      resourceName: clustername1
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,
                              private_link_service_connection_state: Optional[PrivateLinkServiceConnectionStateArgs] = None,
                              resource_group_name: Optional[str] = None,
                              resource_name_: Optional[str] = None,
                              private_endpoint: Optional[PrivateEndpointArgs] = 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:containerservice: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 exampleprivateEndpointConnectionResourceResourceFromContainerservice = new AzureNative.ContainerService.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromContainerservice", new()
{
    PrivateLinkServiceConnectionState = new AzureNative.ContainerService.Inputs.PrivateLinkServiceConnectionStateArgs
    {
        Description = "string",
        Status = "string",
    },
    ResourceGroupName = "string",
    ResourceName = "string",
    PrivateEndpoint = new AzureNative.ContainerService.Inputs.PrivateEndpointArgs
    {
        Id = "string",
    },
    PrivateEndpointConnectionName = "string",
});
example, err := containerservice.NewPrivateEndpointConnection(ctx, "exampleprivateEndpointConnectionResourceResourceFromContainerservice", &containerservice.PrivateEndpointConnectionArgs{
	PrivateLinkServiceConnectionState: &containerservice.PrivateLinkServiceConnectionStateArgs{
		Description: pulumi.String("string"),
		Status:      pulumi.String("string"),
	},
	ResourceGroupName: pulumi.String("string"),
	ResourceName:      pulumi.String("string"),
	PrivateEndpoint: &containerservice.PrivateEndpointArgs{
		Id: pulumi.String("string"),
	},
	PrivateEndpointConnectionName: pulumi.String("string"),
})
var exampleprivateEndpointConnectionResourceResourceFromContainerservice = new PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromContainerservice", PrivateEndpointConnectionArgs.builder()
    .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
        .description("string")
        .status("string")
        .build())
    .resourceGroupName("string")
    .resourceName("string")
    .privateEndpoint(PrivateEndpointArgs.builder()
        .id("string")
        .build())
    .privateEndpointConnectionName("string")
    .build());
exampleprivate_endpoint_connection_resource_resource_from_containerservice = azure_native.containerservice.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromContainerservice",
    private_link_service_connection_state={
        "description": "string",
        "status": "string",
    },
    resource_group_name="string",
    resource_name_="string",
    private_endpoint={
        "id": "string",
    },
    private_endpoint_connection_name="string")
const exampleprivateEndpointConnectionResourceResourceFromContainerservice = new azure_native.containerservice.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromContainerservice", {
    privateLinkServiceConnectionState: {
        description: "string",
        status: "string",
    },
    resourceGroupName: "string",
    resourceName: "string",
    privateEndpoint: {
        id: "string",
    },
    privateEndpointConnectionName: "string",
});
type: azure-native:containerservice:PrivateEndpointConnection
properties:
    privateEndpoint:
        id: string
    privateEndpointConnectionName: string
    privateLinkServiceConnectionState:
        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
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:
- PrivateLink Pulumi.Service Connection State Azure Native. Container Service. Inputs. Private Link Service Connection State 
- A collection of information about the state of the connection between service consumer and provider.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the managed cluster resource.
- PrivateEndpoint Pulumi.Azure Native. Container Service. Inputs. Private Endpoint 
- The resource of private endpoint.
- PrivateEndpoint stringConnection Name 
- The name of the private endpoint connection.
- PrivateLink PrivateService Connection State Link Service Connection State Args 
- A collection of information about the state of the connection between service consumer and provider.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the managed cluster resource.
- PrivateEndpoint PrivateEndpoint Args 
- The resource of private endpoint.
- PrivateEndpoint stringConnection Name 
- The name of the private endpoint connection.
- privateLink PrivateService Connection State Link Service Connection State 
- A collection of information about the state of the connection between service consumer and provider.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the managed cluster resource.
- privateEndpoint PrivateEndpoint 
- The resource of private endpoint.
- privateEndpoint StringConnection Name 
- The name of the private endpoint connection.
- privateLink PrivateService Connection State Link Service Connection State 
- A collection of information about the state of the connection between service consumer and provider.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- resourceName string
- The name of the managed cluster resource.
- privateEndpoint PrivateEndpoint 
- The resource of private endpoint.
- privateEndpoint stringConnection Name 
- The name of the private endpoint connection.
- private_link_ Privateservice_ connection_ state Link Service Connection State Args 
- A collection of information about the state of the connection between service consumer and provider.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- resource_name str
- The name of the managed cluster resource.
- private_endpoint PrivateEndpoint Args 
- The resource of private endpoint.
- private_endpoint_ strconnection_ name 
- The name of the private endpoint connection.
- privateLink Property MapService Connection State 
- A collection of information about the state of the connection between service consumer and provider.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the managed cluster resource.
- privateEndpoint Property Map
- The resource of private endpoint.
- privateEndpoint 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:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the private endpoint connection.
- ProvisioningState string
- The current provisioning state.
- Type string
- The resource type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the private endpoint connection.
- ProvisioningState string
- The current provisioning state.
- Type string
- The resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the private endpoint connection.
- provisioningState String
- The current provisioning state.
- type String
- The resource type.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the private endpoint connection.
- provisioningState string
- The current provisioning state.
- type string
- The resource type.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the private endpoint connection.
- provisioning_state str
- The current provisioning state.
- type str
- The resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the private endpoint connection.
- provisioningState String
- The current provisioning state.
- type String
- The resource type.
Supporting Types
ConnectionStatus, ConnectionStatusArgs    
- Pending
- Pending
- Approved
- Approved
- Rejected
- Rejected
- Disconnected
- Disconnected
- ConnectionStatus Pending 
- Pending
- ConnectionStatus Approved 
- Approved
- ConnectionStatus Rejected 
- Rejected
- ConnectionStatus 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
PrivateEndpoint, PrivateEndpointArgs    
- Id string
- The resource ID of the private endpoint
- Id string
- The resource ID of the private endpoint
- id String
- The resource ID of the private endpoint
- id string
- The resource ID of the private endpoint
- id str
- The resource ID of the private endpoint
- id String
- The resource ID of the private endpoint
PrivateEndpointResponse, PrivateEndpointResponseArgs      
- Id string
- The resource ID of the private endpoint
- Id string
- The resource ID of the private endpoint
- id String
- The resource ID of the private endpoint
- id string
- The resource ID of the private endpoint
- id str
- The resource ID of the private endpoint
- id String
- The resource ID of the private endpoint
PrivateLinkServiceConnectionState, PrivateLinkServiceConnectionStateArgs          
- Description string
- The private link service connection description.
- Status
string | Pulumi.Azure Native. Container Service. Connection Status 
- The private link service connection status.
- Description string
- The private link service connection description.
- Status
string | ConnectionStatus 
- The private link service connection status.
- description String
- The private link service connection description.
- status
String | ConnectionStatus 
- The private link service connection status.
- description string
- The private link service connection description.
- status
string | ConnectionStatus 
- The private link service connection status.
- description str
- The private link service connection description.
- status
str | ConnectionStatus 
- The private link service connection status.
- description String
- The private link service connection description.
- status String | "Pending" | "Approved" | "Rejected" | "Disconnected"
- The private link service connection status.
PrivateLinkServiceConnectionStateResponse, PrivateLinkServiceConnectionStateResponseArgs            
- Description string
- The private link service connection description.
- Status string
- The private link service connection status.
- Description string
- The private link service connection description.
- Status string
- The private link service connection status.
- description String
- The private link service connection description.
- status String
- The private link service connection status.
- description string
- The private link service connection description.
- status string
- The private link service connection status.
- description str
- The private link service connection description.
- status str
- The private link service connection status.
- description String
- The private link service connection description.
- status String
- The private link service connection status.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:containerservice:PrivateEndpointConnection privateendpointconnection1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/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