1. Packages
  2. Azure Native v1
  3. API Docs
  4. eventhub
  5. PrivateEndpointConnection
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.eventhub.PrivateEndpointConnection

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Properties of the PrivateEndpointConnection. API Version: 2018-01-01-preview.

    Example Usage

    NameSpacePrivateEndPointConnectionCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var privateEndpointConnection = new AzureNative.EventHub.PrivateEndpointConnection("privateEndpointConnection", new()
        {
            NamespaceName = "sdk-Namespace-2924",
            PrivateEndpoint = new AzureNative.EventHub.Inputs.PrivateEndpointArgs
            {
                Id = "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847",
            },
            PrivateEndpointConnectionName = "privateEndpointConnectionName",
            PrivateLinkServiceConnectionState = new AzureNative.EventHub.Inputs.ConnectionStateArgs
            {
                Description = "testing",
                Status = "Rejected",
            },
            ProvisioningState = "Succeeded",
            ResourceGroupName = "ArunMonocle",
        });
    
    });
    
    package main
    
    import (
    	eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := eventhub.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &eventhub.PrivateEndpointConnectionArgs{
    			NamespaceName: pulumi.String("sdk-Namespace-2924"),
    			PrivateEndpoint: &eventhub.PrivateEndpointArgs{
    				Id: pulumi.String("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"),
    			},
    			PrivateEndpointConnectionName: pulumi.String("privateEndpointConnectionName"),
    			PrivateLinkServiceConnectionState: &eventhub.ConnectionStateArgs{
    				Description: pulumi.String("testing"),
    				Status:      pulumi.String("Rejected"),
    			},
    			ProvisioningState: pulumi.String("Succeeded"),
    			ResourceGroupName: pulumi.String("ArunMonocle"),
    		})
    		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.eventhub.PrivateEndpointConnection;
    import com.pulumi.azurenative.eventhub.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()        
                .namespaceName("sdk-Namespace-2924")
                .privateEndpoint(Map.of("id", "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"))
                .privateEndpointConnectionName("privateEndpointConnectionName")
                .privateLinkServiceConnectionState(Map.ofEntries(
                    Map.entry("description", "testing"),
                    Map.entry("status", "Rejected")
                ))
                .provisioningState("Succeeded")
                .resourceGroupName("ArunMonocle")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    private_endpoint_connection = azure_native.eventhub.PrivateEndpointConnection("privateEndpointConnection",
        namespace_name="sdk-Namespace-2924",
        private_endpoint=azure_native.eventhub.PrivateEndpointArgs(
            id="/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847",
        ),
        private_endpoint_connection_name="privateEndpointConnectionName",
        private_link_service_connection_state=azure_native.eventhub.ConnectionStateArgs(
            description="testing",
            status="Rejected",
        ),
        provisioning_state="Succeeded",
        resource_group_name="ArunMonocle")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const privateEndpointConnection = new azure_native.eventhub.PrivateEndpointConnection("privateEndpointConnection", {
        namespaceName: "sdk-Namespace-2924",
        privateEndpoint: {
            id: "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847",
        },
        privateEndpointConnectionName: "privateEndpointConnectionName",
        privateLinkServiceConnectionState: {
            description: "testing",
            status: "Rejected",
        },
        provisioningState: "Succeeded",
        resourceGroupName: "ArunMonocle",
    });
    
    resources:
      privateEndpointConnection:
        type: azure-native:eventhub:PrivateEndpointConnection
        properties:
          namespaceName: sdk-Namespace-2924
          privateEndpoint:
            id: /subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847
          privateEndpointConnectionName: privateEndpointConnectionName
          privateLinkServiceConnectionState:
            description: testing
            status: Rejected
          provisioningState: Succeeded
          resourceGroupName: ArunMonocle
    

    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,
                                  namespace_name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  private_endpoint: Optional[PrivateEndpointArgs] = None,
                                  private_endpoint_connection_name: Optional[str] = None,
                                  private_link_service_connection_state: Optional[ConnectionStateArgs] = None,
                                  provisioning_state: Optional[Union[str, EndPointProvisioningState]] = 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:eventhub: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 exampleprivateEndpointConnectionResourceResourceFromEventhub = new AzureNative.Eventhub.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromEventhub", new()
    {
        NamespaceName = "string",
        ResourceGroupName = "string",
        PrivateEndpoint = 
        {
            { "id", "string" },
        },
        PrivateEndpointConnectionName = "string",
        PrivateLinkServiceConnectionState = 
        {
            { "description", "string" },
            { "status", "string" },
        },
        ProvisioningState = "string",
    });
    
    example, err := eventhub.NewPrivateEndpointConnection(ctx, "exampleprivateEndpointConnectionResourceResourceFromEventhub", &eventhub.PrivateEndpointConnectionArgs{
    	NamespaceName:     "string",
    	ResourceGroupName: "string",
    	PrivateEndpoint: map[string]interface{}{
    		"id": "string",
    	},
    	PrivateEndpointConnectionName: "string",
    	PrivateLinkServiceConnectionState: map[string]interface{}{
    		"description": "string",
    		"status":      "string",
    	},
    	ProvisioningState: "string",
    })
    
    var exampleprivateEndpointConnectionResourceResourceFromEventhub = new PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromEventhub", PrivateEndpointConnectionArgs.builder()
        .namespaceName("string")
        .resourceGroupName("string")
        .privateEndpoint(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .privateEndpointConnectionName("string")
        .privateLinkServiceConnectionState(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .provisioningState("string")
        .build());
    
    exampleprivate_endpoint_connection_resource_resource_from_eventhub = azure_native.eventhub.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromEventhub",
        namespace_name=string,
        resource_group_name=string,
        private_endpoint={
            id: string,
        },
        private_endpoint_connection_name=string,
        private_link_service_connection_state={
            description: string,
            status: string,
        },
        provisioning_state=string)
    
    const exampleprivateEndpointConnectionResourceResourceFromEventhub = new azure_native.eventhub.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromEventhub", {
        namespaceName: "string",
        resourceGroupName: "string",
        privateEndpoint: {
            id: "string",
        },
        privateEndpointConnectionName: "string",
        privateLinkServiceConnectionState: {
            description: "string",
            status: "string",
        },
        provisioningState: "string",
    });
    
    type: azure-native:eventhub:PrivateEndpointConnection
    properties:
        namespaceName: string
        privateEndpoint:
            id: string
        privateEndpointConnectionName: string
        privateLinkServiceConnectionState:
            description: string
            status: string
        provisioningState: 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:

    NamespaceName string
    The Namespace name
    ResourceGroupName string
    Name of the resource group within the azure subscription.
    PrivateEndpoint Pulumi.AzureNative.EventHub.Inputs.PrivateEndpoint
    The Private Endpoint resource for this Connection.
    PrivateEndpointConnectionName string
    The PrivateEndpointConnection name
    PrivateLinkServiceConnectionState Pulumi.AzureNative.EventHub.Inputs.ConnectionState
    Details about the state of the connection.
    ProvisioningState string | Pulumi.AzureNative.EventHub.EndPointProvisioningState
    Provisioning state of the Private Endpoint Connection.
    NamespaceName string
    The Namespace name
    ResourceGroupName string
    Name of the resource group within the azure subscription.
    PrivateEndpoint PrivateEndpointArgs
    The Private Endpoint resource for this Connection.
    PrivateEndpointConnectionName string
    The PrivateEndpointConnection name
    PrivateLinkServiceConnectionState ConnectionStateArgs
    Details about the state of the connection.
    ProvisioningState string | EndPointProvisioningState
    Provisioning state of the Private Endpoint Connection.
    namespaceName String
    The Namespace name
    resourceGroupName String
    Name of the resource group within the azure subscription.
    privateEndpoint PrivateEndpoint
    The Private Endpoint resource for this Connection.
    privateEndpointConnectionName String
    The PrivateEndpointConnection name
    privateLinkServiceConnectionState ConnectionState
    Details about the state of the connection.
    provisioningState String | EndPointProvisioningState
    Provisioning state of the Private Endpoint Connection.
    namespaceName string
    The Namespace name
    resourceGroupName string
    Name of the resource group within the azure subscription.
    privateEndpoint PrivateEndpoint
    The Private Endpoint resource for this Connection.
    privateEndpointConnectionName string
    The PrivateEndpointConnection name
    privateLinkServiceConnectionState ConnectionState
    Details about the state of the connection.
    provisioningState string | EndPointProvisioningState
    Provisioning state of the Private Endpoint Connection.
    namespace_name str
    The Namespace name
    resource_group_name str
    Name of the resource group within the azure subscription.
    private_endpoint PrivateEndpointArgs
    The Private Endpoint resource for this Connection.
    private_endpoint_connection_name str
    The PrivateEndpointConnection name
    private_link_service_connection_state ConnectionStateArgs
    Details about the state of the connection.
    provisioning_state str | EndPointProvisioningState
    Provisioning state of the Private Endpoint Connection.
    namespaceName String
    The Namespace name
    resourceGroupName String
    Name of the resource group within the azure subscription.
    privateEndpoint Property Map
    The Private Endpoint resource for this Connection.
    privateEndpointConnectionName String
    The PrivateEndpointConnection name
    privateLinkServiceConnectionState Property Map
    Details about the state of the connection.
    provisioningState String | "Creating" | "Updating" | "Deleting" | "Succeeded" | "Canceled" | "Failed"
    Provisioning state 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 resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ConnectionState, ConnectionStateArgs

    Description string
    Description of the connection state.
    Status string | Pulumi.AzureNative.EventHub.PrivateLinkConnectionStatus
    Status of the connection.
    Description string
    Description of the connection state.
    Status string | PrivateLinkConnectionStatus
    Status of the connection.
    description String
    Description of the connection state.
    status String | PrivateLinkConnectionStatus
    Status of the connection.
    description string
    Description of the connection state.
    status string | PrivateLinkConnectionStatus
    Status of the connection.
    description str
    Description of the connection state.
    status str | PrivateLinkConnectionStatus
    Status of the connection.
    description String
    Description of the connection state.
    status String | "Pending" | "Approved" | "Rejected" | "Disconnected"
    Status of the connection.

    ConnectionStateResponse, ConnectionStateResponseArgs

    Description string
    Description of the connection state.
    Status string
    Status of the connection.
    Description string
    Description of the connection state.
    Status string
    Status of the connection.
    description String
    Description of the connection state.
    status String
    Status of the connection.
    description string
    Description of the connection state.
    status string
    Status of the connection.
    description str
    Description of the connection state.
    status str
    Status of the connection.
    description String
    Description of the connection state.
    status String
    Status of the connection.

    EndPointProvisioningState, EndPointProvisioningStateArgs

    Creating
    Creating
    Updating
    Updating
    Deleting
    Deleting
    Succeeded
    Succeeded
    Canceled
    Canceled
    Failed
    Failed
    EndPointProvisioningStateCreating
    Creating
    EndPointProvisioningStateUpdating
    Updating
    EndPointProvisioningStateDeleting
    Deleting
    EndPointProvisioningStateSucceeded
    Succeeded
    EndPointProvisioningStateCanceled
    Canceled
    EndPointProvisioningStateFailed
    Failed
    Creating
    Creating
    Updating
    Updating
    Deleting
    Deleting
    Succeeded
    Succeeded
    Canceled
    Canceled
    Failed
    Failed
    Creating
    Creating
    Updating
    Updating
    Deleting
    Deleting
    Succeeded
    Succeeded
    Canceled
    Canceled
    Failed
    Failed
    CREATING
    Creating
    UPDATING
    Updating
    DELETING
    Deleting
    SUCCEEDED
    Succeeded
    CANCELED
    Canceled
    FAILED
    Failed
    "Creating"
    Creating
    "Updating"
    Updating
    "Deleting"
    Deleting
    "Succeeded"
    Succeeded
    "Canceled"
    Canceled
    "Failed"
    Failed

    PrivateEndpoint, PrivateEndpointArgs

    Id string
    The ARM identifier for Private Endpoint.
    Id string
    The ARM identifier for Private Endpoint.
    id String
    The ARM identifier for Private Endpoint.
    id string
    The ARM identifier for Private Endpoint.
    id str
    The ARM identifier for Private Endpoint.
    id String
    The ARM identifier for Private Endpoint.

    PrivateEndpointResponse, PrivateEndpointResponseArgs

    Id string
    The ARM identifier for Private Endpoint.
    Id string
    The ARM identifier for Private Endpoint.
    id String
    The ARM identifier for Private Endpoint.
    id string
    The ARM identifier for Private Endpoint.
    id str
    The ARM identifier for Private Endpoint.
    id String
    The ARM identifier for Private Endpoint.

    PrivateLinkConnectionStatus, PrivateLinkConnectionStatusArgs

    Pending
    Pending
    Approved
    Approved
    Rejected
    Rejected
    Disconnected
    Disconnected
    PrivateLinkConnectionStatusPending
    Pending
    PrivateLinkConnectionStatusApproved
    Approved
    PrivateLinkConnectionStatusRejected
    Rejected
    PrivateLinkConnectionStatusDisconnected
    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:eventhub:PrivateEndpointConnection 928c44d5-b7c6-423b-b6fa-811e0c27b3e0 /subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0 
    

    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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi