func GetEndpointEventHub(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EndpointEventHubState, opts ...pulumi.ResourceOption) (*EndpointEventHub, error) {
	var resource EndpointEventHub
	err := ctx.ReadResource("azure:digitaltwins/endpointEventHub:EndpointEventHub", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// GetEndpointEventHub gets an existing EndpointEventHub resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
GetEndpointEventHub gets an existing EndpointEventHub resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
// GetEndpointEventHub gets an existing EndpointEventHub resource ' s state with the given name ID and optional // state properties that are used to uniquely qualify the lookup ( nil if not required ) .
func GetEndpointEventHub(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EndpointEventHubState, opts ...pulumi.ResourceOption) (*EndpointEventHub, error) {
	var resource EndpointEventHub
	err := ctx.ReadResource("azure:digitaltwins/endpointEventHub:EndpointEventHub", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func GetEndpointEventHub ( ctx * pulumi . Context , name string , id pulumi . IDInput , state * EndpointEventHubState , opts ... pulumi . ResourceOption ) ( * EndpointEventHub , error ) { var resource EndpointEventHub err := ctx . ReadResource ( " " , name , id , state , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
GetEndpointEventHub gets an existing EndpointEventHub resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
GetEndpointEventHub gets an existing EndpointEventHub resource ' s state with the given name ID and optional state properties that are used to uniquely qualify the lookup ( nil if not required ) .