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

	if args.Input == nil {
		return nil, errors.New("invalid value for required argument 'Input'")
	}
	if args.MediaServicesAccountName == nil {
		return nil, errors.New("invalid value for required argument 'MediaServicesAccountName'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	var resource LiveEvent
	err := ctx.RegisterResource("azure:media/liveEvent:LiveEvent", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewLiveEvent registers a new resource with the given unique name, arguments, and options.
NewLiveEvent registers a new resource with the given unique name, arguments, and options.
// NewLiveEvent registers a new resource with the given unique name arguments and options .
func NewLiveEvent(ctx *pulumi.Context,
	name string, args *LiveEventArgs, opts ...pulumi.ResourceOption) (*LiveEvent, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Input == nil {
		return nil, errors.New("invalid value for required argument 'Input'")
	}
	if args.MediaServicesAccountName == nil {
		return nil, errors.New("invalid value for required argument 'MediaServicesAccountName'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	var resource LiveEvent
	err := ctx.RegisterResource("azure:media/liveEvent:LiveEvent", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewLiveEvent ( ctx * pulumi . Context , name string , args * LiveEventArgs , opts ... pulumi . ResourceOption ) ( * LiveEvent , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Input == nil { return nil , errors . New ( " " ) } if args . MediaServicesAccountName == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } var resource LiveEvent err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewLiveEvent registers a new resource with the given unique name, arguments, and options.
NewLiveEvent registers a new resource with the given unique name arguments and options .