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

	if args.DestinationResourceId == nil {
		return nil, errors.New("invalid value for required argument 'DestinationResourceId'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.TableNames == nil {
		return nil, errors.New("invalid value for required argument 'TableNames'")
	}
	if args.WorkspaceResourceId == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceResourceId'")
	}
	var resource DataExportRule
	err := ctx.RegisterResource("azure:loganalytics/dataExportRule:DataExportRule", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewDataExportRule registers a new resource with the given unique name, arguments, and options.
NewDataExportRule registers a new resource with the given unique name, arguments, and options.
// NewDataExportRule registers a new resource with the given unique name arguments and options .
func NewDataExportRule(ctx *pulumi.Context,
	name string, args *DataExportRuleArgs, opts ...pulumi.ResourceOption) (*DataExportRule, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DestinationResourceId == nil {
		return nil, errors.New("invalid value for required argument 'DestinationResourceId'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.TableNames == nil {
		return nil, errors.New("invalid value for required argument 'TableNames'")
	}
	if args.WorkspaceResourceId == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceResourceId'")
	}
	var resource DataExportRule
	err := ctx.RegisterResource("azure:loganalytics/dataExportRule:DataExportRule", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewDataExportRule ( ctx * pulumi . Context , name string , args * DataExportRuleArgs , opts ... pulumi . ResourceOption ) ( * DataExportRule , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DestinationResourceId == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . TableNames == nil { return nil , errors . New ( " " ) } if args . WorkspaceResourceId == nil { return nil , errors . New ( " " ) } var resource DataExportRule err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewDataExportRule registers a new resource with the given unique name, arguments, and options.
NewDataExportRule registers a new resource with the given unique name arguments and options .