azure-native.eventhub.PrivateEndpointConnection
Explore with Pulumi AI
Properties of the PrivateEndpointConnection. Azure REST API version: 2022-10-01-preview. Prior API version in Azure Native 1.x: 2018-01-01-preview.
Other available API versions: 2023-01-01-preview, 2024-01-01, 2024-05-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 = AzureNative.EventHub.PrivateLinkConnectionStatus.Rejected,
},
ProvisioningState = AzureNative.EventHub.EndPointProvisioningState.Succeeded,
ResourceGroupName = "ArunMonocle",
});
});
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v2"
"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(eventhub.PrivateLinkConnectionStatusRejected),
},
ProvisioningState: pulumi.String(eventhub.EndPointProvisioningStateSucceeded),
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 com.pulumi.azurenative.eventhub.inputs.PrivateEndpointArgs;
import com.pulumi.azurenative.eventhub.inputs.ConnectionStateArgs;
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(PrivateEndpointArgs.builder()
.id("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847")
.build())
.privateEndpointConnectionName("privateEndpointConnectionName")
.privateLinkServiceConnectionState(ConnectionStateArgs.builder()
.description("testing")
.status("Rejected")
.build())
.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={
"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={
"description": "testing",
"status": azure_native.eventhub.PrivateLinkConnectionStatus.REJECTED,
},
provisioning_state=azure_native.eventhub.EndPointProvisioningState.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: azure_native.eventhub.PrivateLinkConnectionStatus.Rejected,
},
provisioningState: azure_native.eventhub.EndPointProvisioningState.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: PrivateEndpointConnectionInitArgs,
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 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 exampleprivateEndpointConnectionResourceResourceFromEventhub = new AzureNative.EventHub.PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromEventhub", new()
{
NamespaceName = "string",
ResourceGroupName = "string",
PrivateEndpoint = new AzureNative.EventHub.Inputs.PrivateEndpointArgs
{
Id = "string",
},
PrivateEndpointConnectionName = "string",
PrivateLinkServiceConnectionState = new AzureNative.EventHub.Inputs.ConnectionStateArgs
{
Description = "string",
Status = "string",
},
ProvisioningState = "string",
});
example, err := eventhub.NewPrivateEndpointConnection(ctx, "exampleprivateEndpointConnectionResourceResourceFromEventhub", &eventhub.PrivateEndpointConnectionArgs{
NamespaceName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
PrivateEndpoint: &eventhub.PrivateEndpointArgs{
Id: pulumi.String("string"),
},
PrivateEndpointConnectionName: pulumi.String("string"),
PrivateLinkServiceConnectionState: &eventhub.ConnectionStateArgs{
Description: pulumi.String("string"),
Status: pulumi.String("string"),
},
ProvisioningState: pulumi.String("string"),
})
var exampleprivateEndpointConnectionResourceResourceFromEventhub = new PrivateEndpointConnection("exampleprivateEndpointConnectionResourceResourceFromEventhub", PrivateEndpointConnectionArgs.builder()
.namespaceName("string")
.resourceGroupName("string")
.privateEndpoint(PrivateEndpointArgs.builder()
.id("string")
.build())
.privateEndpointConnectionName("string")
.privateLinkServiceConnectionState(ConnectionStateArgs.builder()
.description("string")
.status("string")
.build())
.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:
- Namespace
Name string - The Namespace name
- Resource
Group stringName - Name of the resource group within the azure subscription.
- Private
Endpoint Pulumi.Azure Native. Event Hub. Inputs. Private Endpoint - The Private Endpoint resource for this Connection.
- Private
Endpoint stringConnection Name - The PrivateEndpointConnection name
- Private
Link Pulumi.Service Connection State Azure Native. Event Hub. Inputs. Connection State - Details about the state of the connection.
- Provisioning
State string | Pulumi.Azure Native. Event Hub. End Point Provisioning State - Provisioning state of the Private Endpoint Connection.
- Namespace
Name string - The Namespace name
- Resource
Group stringName - Name of the resource group within the azure subscription.
- Private
Endpoint PrivateEndpoint Args - The Private Endpoint resource for this Connection.
- Private
Endpoint stringConnection Name - The PrivateEndpointConnection name
- Private
Link ConnectionService Connection State State Args - Details about the state of the connection.
- Provisioning
State string | EndPoint Provisioning State - Provisioning state of the Private Endpoint Connection.
- namespace
Name String - The Namespace name
- resource
Group StringName - Name of the resource group within the azure subscription.
- private
Endpoint PrivateEndpoint - The Private Endpoint resource for this Connection.
- private
Endpoint StringConnection Name - The PrivateEndpointConnection name
- private
Link ConnectionService Connection State State - Details about the state of the connection.
- provisioning
State String | EndPoint Provisioning State - Provisioning state of the Private Endpoint Connection.
- namespace
Name string - The Namespace name
- resource
Group stringName - Name of the resource group within the azure subscription.
- private
Endpoint PrivateEndpoint - The Private Endpoint resource for this Connection.
- private
Endpoint stringConnection Name - The PrivateEndpointConnection name
- private
Link ConnectionService Connection State State - Details about the state of the connection.
- provisioning
State string | EndPoint Provisioning State - Provisioning state of the Private Endpoint Connection.
- namespace_
name str - The Namespace name
- resource_
group_ strname - Name of the resource group within the azure subscription.
- private_
endpoint PrivateEndpoint Args - The Private Endpoint resource for this Connection.
- private_
endpoint_ strconnection_ name - The PrivateEndpointConnection name
- private_
link_ Connectionservice_ connection_ state State Args - Details about the state of the connection.
- provisioning_
state str | EndPoint Provisioning State - Provisioning state of the Private Endpoint Connection.
- namespace
Name String - The Namespace name
- resource
Group StringName - Name of the resource group within the azure subscription.
- private
Endpoint Property Map - The Private Endpoint resource for this Connection.
- private
Endpoint StringConnection Name - The PrivateEndpointConnection name
- private
Link Property MapService Connection State - Details about the state of the connection.
- provisioning
State 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.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Event Hub. Outputs. System Data Response - The system meta data relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- System
Data SystemData Response - The system meta data relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- system
Data SystemData Response - The system meta data relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- system
Data SystemData Response - The system meta data relating to this resource.
- type string
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- system_
data SystemData Response - The system meta data relating to this resource.
- type str
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- system
Data Property Map - The system meta data relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
Supporting Types
ConnectionState, ConnectionStateArgs
- Description string
- Description of the connection state.
- Status
string | Pulumi.
Azure Native. Event Hub. Private Link Connection Status - Status of the connection.
- Description string
- Description of the connection state.
- Status
string | Private
Link Connection Status - Status of the connection.
- description String
- Description of the connection state.
- status
String | Private
Link Connection Status - Status of the connection.
- description string
- Description of the connection state.
- status
string | Private
Link Connection Status - Status of the connection.
- description str
- Description of the connection state.
- status
str | Private
Link Connection Status - 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
- End
Point Provisioning State Creating - Creating
- End
Point Provisioning State Updating - Updating
- End
Point Provisioning State Deleting - Deleting
- End
Point Provisioning State Succeeded - Succeeded
- End
Point Provisioning State Canceled - Canceled
- End
Point Provisioning State 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
- "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
- Private
Link Connection Status Pending - Pending
- Private
Link Connection Status Approved - Approved
- Private
Link Connection Status Rejected - Rejected
- Private
Link 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
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/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