func NewEndpointEventHub(ctx *pulumi.Context,
	name string, args *EndpointEventHubArgs, opts ...pulumi.ResourceOption) (*EndpointEventHub, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.DigitalTwinsId == nil {
		return nil, errors.New("invalid value for required argument 'DigitalTwinsId'")
	}
	if args.EventhubPrimaryConnectionString == nil {
		return nil, errors.New("invalid value for required argument 'EventhubPrimaryConnectionString'")
	}
	if args.EventhubSecondaryConnectionString == nil {
		return nil, errors.New("invalid value for required argument 'EventhubSecondaryConnectionString'")
	}
	var resource EndpointEventHub
	err := ctx.RegisterResource("azure:digitaltwins/endpointEventHub:EndpointEventHub", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewEndpointEventHub registers a new resource with the given unique name, arguments, and options.
NewEndpointEventHub registers a new resource with the given unique name, arguments, and options.
// NewEndpointEventHub registers a new resource with the given unique name arguments and options .
func NewEndpointEventHub(ctx *pulumi.Context,
	name string, args *EndpointEventHubArgs, opts ...pulumi.ResourceOption) (*EndpointEventHub, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DigitalTwinsId == nil {
		return nil, errors.New("invalid value for required argument 'DigitalTwinsId'")
	}
	if args.EventhubPrimaryConnectionString == nil {
		return nil, errors.New("invalid value for required argument 'EventhubPrimaryConnectionString'")
	}
	if args.EventhubSecondaryConnectionString == nil {
		return nil, errors.New("invalid value for required argument 'EventhubSecondaryConnectionString'")
	}
	var resource EndpointEventHub
	err := ctx.RegisterResource("azure:digitaltwins/endpointEventHub:EndpointEventHub", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewEndpointEventHub ( ctx * pulumi . Context , name string , args * EndpointEventHubArgs , opts ... pulumi . ResourceOption ) ( * EndpointEventHub , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DigitalTwinsId == nil { return nil , errors . New ( " " ) } if args . EventhubPrimaryConnectionString == nil { return nil , errors . New ( " " ) } if args . EventhubSecondaryConnectionString == nil { return nil , errors . New ( " " ) } var resource EndpointEventHub err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewEndpointEventHub registers a new resource with the given unique name, arguments, and options.
NewEndpointEventHub registers a new resource with the given unique name arguments and options .