func NewEndpointEventGrid(ctx *pulumi.Context,
	name string, args *EndpointEventGridArgs, opts ...pulumi.ResourceOption) (*EndpointEventGrid, 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.EventgridTopicEndpoint == nil {
		return nil, errors.New("invalid value for required argument 'EventgridTopicEndpoint'")
	}
	if args.EventgridTopicPrimaryAccessKey == nil {
		return nil, errors.New("invalid value for required argument 'EventgridTopicPrimaryAccessKey'")
	}
	if args.EventgridTopicSecondaryAccessKey == nil {
		return nil, errors.New("invalid value for required argument 'EventgridTopicSecondaryAccessKey'")
	}
	var resource EndpointEventGrid
	err := ctx.RegisterResource("azure:digitaltwins/endpointEventGrid:EndpointEventGrid", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewEndpointEventGrid registers a new resource with the given unique name, arguments, and options.
NewEndpointEventGrid registers a new resource with the given unique name, arguments, and options.
// NewEndpointEventGrid registers a new resource with the given unique name arguments and options .
func NewEndpointEventGrid(ctx *pulumi.Context,
	name string, args *EndpointEventGridArgs, opts ...pulumi.ResourceOption) (*EndpointEventGrid, 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.EventgridTopicEndpoint == nil {
		return nil, errors.New("invalid value for required argument 'EventgridTopicEndpoint'")
	}
	if args.EventgridTopicPrimaryAccessKey == nil {
		return nil, errors.New("invalid value for required argument 'EventgridTopicPrimaryAccessKey'")
	}
	if args.EventgridTopicSecondaryAccessKey == nil {
		return nil, errors.New("invalid value for required argument 'EventgridTopicSecondaryAccessKey'")
	}
	var resource EndpointEventGrid
	err := ctx.RegisterResource("azure:digitaltwins/endpointEventGrid:EndpointEventGrid", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewEndpointEventGrid ( ctx * pulumi . Context , name string , args * EndpointEventGridArgs , opts ... pulumi . ResourceOption ) ( * EndpointEventGrid , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DigitalTwinsId == nil { return nil , errors . New ( " " ) } if args . EventgridTopicEndpoint == nil { return nil , errors . New ( " " ) } if args . EventgridTopicPrimaryAccessKey == nil { return nil , errors . New ( " " ) } if args . EventgridTopicSecondaryAccessKey == nil { return nil , errors . New ( " " ) } var resource EndpointEventGrid err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewEndpointEventGrid registers a new resource with the given unique name, arguments, and options.
NewEndpointEventGrid registers a new resource with the given unique name arguments and options .